[obvious/pushed] Initialize variable on gdb/linux-tdep.c:decode_vmflags
Commit Message
This obvious commit initializes the 'saveptr' variable on
gdb/linux-tdep.c:decode_vmflags. This was causing a build failure on
Fedora 21 x86_64, caught by the BuildBot here:
<https://sourceware.org/ml/gdb-testers/2015-q2/msg00450.html>
---
gdb/ChangeLog | 4 ++++
gdb/linux-tdep.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
@@ -1,3 +1,7 @@
+2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
+
2015-04-07 Pedro Alves <palves@redhat.com>
* gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
@@ -445,7 +445,7 @@ read_mapping (const char *line,
static void
decode_vmflags (char *p, struct smaps_vmflags *v)
{
- char *saveptr;
+ char *saveptr = NULL;
const char *s;
v->initialized_p = 1;