diff options
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r-- | gcc/genpeep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genpeep.c b/gcc/genpeep.c index 550de07ffe3..dfba042e9b5 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -401,7 +401,7 @@ xrealloc (old, size) size_t size; { register PTR ptr; - if (ptr) + if (old) ptr = (PTR) realloc (old, size); else ptr = (PTR) malloc (size); |