diff options
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -10743,7 +10743,11 @@ xrealloc (old, size) PTR old; size_t size; { - register PTR ptr = (PTR) realloc (old, size); + register PTR ptr; + if (ptr) + ptr = (PTR) realloc (old, size); + else + ptr = (PTR) malloc (size); if (!ptr) memory_full (); return ptr; |