Commit 5ece1728 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(error): Fix logic in call to xmalloc/xrealloc.

parent 8b4d685f
......@@ -1331,7 +1331,11 @@ error (m, a1, a2, a3)
size *= 2;
if (allocated)
buffer = (char *) xrealloc (buffer, size);
buffer = (char *) xmalloc (size);
else
{
buffer = (char *) xmalloc (size);
allocated = 1;
}
}
string = build_string (buf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment