From: Nick Clifton Date: Tue, 10 Jan 2017 11:45:12 +0000 (+0000) Subject: Fix compile time warning about pointer comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715;p=binutils-gdb.git Fix compile time warning about pointer comparison. PR 21034 * stabs.c (parse_stab_members): Fix thinko checking for g++ version 1 stabs information. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a37f56cbce8..38d033ef27d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2017-01-10 Nick Clifton + + PR 21034 + * stabs.c (parse_stab_members): Fix thinko checking for g++ + version 1 stabs information. + 2017-01-09 Nick Clifton * objdump.c (display_file): Add new parameter 'last_file'. If diff --git a/binutils/stabs.c b/binutils/stabs.c index f5c5d2d8e0f..d3fc4afe242 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;