comparison src/eval.c @ 7353:334cececa42d

(error): Fix logic in call to xmalloc/xrealloc.
author Richard M. Stallman <rms@gnu.org>
date Fri, 06 May 1994 06:45:18 +0000
parents cd81dba38a49
children 9ec3fc16ab3a
comparison
equal deleted inserted replaced
7352:ef89b78c1a92 7353:334cececa42d
1329 if (used < size) 1329 if (used < size)
1330 break; 1330 break;
1331 size *= 2; 1331 size *= 2;
1332 if (allocated) 1332 if (allocated)
1333 buffer = (char *) xrealloc (buffer, size); 1333 buffer = (char *) xrealloc (buffer, size);
1334 buffer = (char *) xmalloc (size); 1334 else
1335 {
1336 buffer = (char *) xmalloc (size);
1337 allocated = 1;
1338 }
1335 } 1339 }
1336 1340
1337 string = build_string (buf); 1341 string = build_string (buf);
1338 if (allocated) 1342 if (allocated)
1339 free (buffer); 1343 free (buffer);