This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix compile time warning about pointer comparison.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 10 Jan 2017 11:45:55 -0000
- Subject: [binutils-gdb] Fix compile time warning about pointer comparison.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715
commit b972a0d61a8b6e1dc3f9baf93ef3e57c7bfb9715
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jan 10 11:45:12 2017 +0000
Fix compile time warning about pointer comparison.
PR 21034
* stabs.c (parse_stab_members): Fix thinko checking for g++
version 1 stabs information.
Diff:
---
binutils/ChangeLog | 6 ++++++
binutils/stabs.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a37f56c..38d033e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
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;