diff options
author | Jim Blandy <jimb@redhat.com> | 1992-03-20 06:01:16 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-03-20 06:01:16 +0000 |
commit | 56d2031be55a6e52919f39afdca611b1efdda177 (patch) | |
tree | f5ec31423102d947312b3d11519a8c0a86676379 /src/alloc.c | |
parent | b0265c647d1699942f49dd3544d72c96314b34be (diff) | |
download | emacs-56d2031be55a6e52919f39afdca611b1efdda177.tar.gz emacs-56d2031be55a6e52919f39afdca611b1efdda177.tar.bz2 emacs-56d2031be55a6e52919f39afdca611b1efdda177.zip |
*** empty log message ***
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 24bb67c6dda..6cff322182d 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1,5 +1,5 @@ /* 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; |