aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-tdep.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2015-04-07 15:19:07 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2015-04-07 15:19:07 -0400
commitd249a14abe5c2ee3ba4dc6c47e68e41ddc2025a4 (patch)
tree9014395c668ce9e818eec39dd9db5aa5a3160075 /gdb/linux-tdep.c
parentb97fde9213b9217499959f7aebbf076b00c7008b (diff)
downloadgdb-d249a14abe5c2ee3ba4dc6c47e68e41ddc2025a4.zip
gdb-d249a14abe5c2ee3ba4dc6c47e68e41ddc2025a4.tar.gz
gdb-d249a14abe5c2ee3ba4dc6c47e68e41ddc2025a4.tar.bz2
Initialize variable on gdb/linux-tdep.c:decode_vmflags
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>
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r--gdb/linux-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index 4af1d01..0b11e58 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -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;