diff options
author | Nick Clifton <nickc@redhat.com> | 2017-01-10 11:45:12 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-01-10 11:45:12 +0000 |
commit | b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715 (patch) | |
tree | 186b894894c93fda0ff27a60cf14d62167333b25 /binutils/stabs.c | |
parent | 07e8e62387eb914b29cbf79f468db89fa4e57b3f (diff) | |
download | gdb-b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715.zip gdb-b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715.tar.gz gdb-b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715.tar.bz2 |
Fix compile time warning about pointer comparison.
PR 21034
* stabs.c (parse_stab_members): Fix thinko checking for g++
version 1 stabs information.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r-- | binutils/stabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c index f5c5d2d..d3fc4af 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -2702,7 +2702,7 @@ parse_stab_members (void *dhandle, struct stab_handle *info, ++*pp; voffset &= 0x7fffffff; - if (**pp == ';' || *pp == '\0') + if (**pp == ';' || **pp == '\0') { /* Must be g++ version 1. */ context = DEBUG_TYPE_NULL; |