From: Sergio Durigan Junior Date: Tue, 7 Apr 2015 19:19:07 +0000 (-0400) Subject: Initialize variable on gdb/linux-tdep.c:decode_vmflags X-Git-Tag: users/hjl/linux/release/2.25.51.0.2~2^2~16^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d249a14abe5c2ee3ba4dc6c47e68e41ddc2025a4;p=thirdparty%2Fbinutils-gdb.git 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: --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0c65a225ad..432cc3e1755 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-04-07 Sergio Durigan Junior + + * linux-tdep.c (decode_vmflags): Initialize 'saveptr'. + 2015-04-07 Pedro Alves * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ... diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 4af1d019002..0b11e58ca1c 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;