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