changeset 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 ef89b78c1a92
children 0611d70ad480
files src/eval.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c	Fri May 06 06:39:48 1994 +0000
+++ b/src/eval.c	Fri May 06 06:45:18 1994 +0000
@@ -1331,7 +1331,11 @@
       size *= 2;
       if (allocated)
 	buffer = (char *) xrealloc (buffer, size);
-      buffer = (char *) xmalloc (size);
+      else
+	{
+	  buffer = (char *) xmalloc (size);
+	  allocated = 1;
+	}
     }
 
   string = build_string (buf);