Fix compile time warning about pointer comparison.
authorNick Clifton <nickc@redhat.com>
Tue, 10 Jan 2017 11:45:12 +0000 (11:45 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 10 Jan 2017 11:45:12 +0000 (11:45 +0000)
PR 21034
* stabs.c (parse_stab_members): Fix thinko checking for g++
version 1 stabs information.

binutils/ChangeLog
binutils/stabs.c

index a37f56cbce83b12a90e2b8c36f1686ec9d0edc39..38d033ef27de8ff3371f6b115491d93bab640a59 100644 (file)
@@ -1,3 +1,9 @@
+2017-01-10  Nick Clifton  <nickc@redhat.com>
+
+       PR 21034
+       * stabs.c (parse_stab_members): Fix thinko checking for g++
+       version 1 stabs information.
+
 2017-01-09  Nick Clifton  <nickc@redhat.com>
 
        * objdump.c (display_file): Add new parameter 'last_file'.  If
index f5c5d2d8e0f7038a3a11af7b7d6434cbfd2ed7f8..d3fc4afe242f1086743ea161e83672ca6d340810 100644 (file)
@@ -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;