summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-09 13:02:10 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-09 13:02:10 +0000
commit9c9452db3c9e6a8e68119d9fa8671313f2953303 (patch)
treeda07a205ef46eb6cdbdf67174cd2d422a8acbbbe /gdb/valops.c
parent397be7998e54fe196d174728fddf22ffbbd0e7a0 (diff)
downloadgdb-9c9452db3c9e6a8e68119d9fa8671313f2953303.tar.gz
Compare VALUE_ADDRESS() return value with ZERO not NULL.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index bfbffa982f4..a99ad1c8f8d 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -3358,7 +3358,7 @@ value_rtti_type (v, full, top, using_enc)
we'd waste a bunch of time figuring out we already know the type.
Besides, we don't care about the type, just the actual pointer
*/
- if (VALUE_ADDRESS(value_field(v,TYPE_VPTR_FIELDNO(known_type))) == NULL)
+ if (VALUE_ADDRESS (value_field (v, TYPE_VPTR_FIELDNO (known_type))) == 0)
return NULL;
/*