aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 673cc27..e895084 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5224,7 +5224,7 @@ xrealloc (old, size)
size_t size;
{
register PTR ptr;
- if (ptr)
+ if (old)
ptr = (PTR) realloc (old, size);
else
ptr = (PTR) malloc (size);