Commit 56d2031b authored by Jim Blandy's avatar Jim Blandy
Browse files

*** empty log message ***

parent b0265c64
/* Storage allocation and gc for GNU Emacs Lisp interpreter.
Copyright (C) 1985, 1986, 1988 Free Software Foundation, Inc.
Copyright (C) 1985, 1986, 1988, 1992 Free Software Foundation, Inc.
This file is part of GNU Emacs.
......@@ -163,7 +163,12 @@ xrealloc (block, size)
{
register long *val;
val = (long *) realloc (block, size);
/* We must call malloc explicitly when BLOCK is 0, since some
reallocs don't do this. */
if (! block)
val = (long *) malloc (size);
ese
val = (long *) realloc (block, size);
if (!val && size) memory_full ();
return val;
......
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