]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix compile time warning about pointer comparison.
authorAlan Modra <amodra@gmail.com>
Wed, 17 May 2017 23:37:26 +0000 (09:07 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 17 May 2017 23:37:26 +0000 (09:07 +0930)
PR 21034
* stabs.c (parse_stab_members): Fix thinko checking for g++
version 1 stabs information.

binutils/ChangeLog
binutils/stabs.c

index f21867f98c5a33de2139537002463ad39212726b..431822add95f54e85e1e665918d340a93708e836 100644 (file)
@@ -1,3 +1,11 @@
+2017-05-18  Alan Modra  <amodra@gmail.com>
+
+       Apply from master
+       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-03-02  Tristan Gingold  <gingold@adacore.com>
 
        * configure: Regenerate.
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;