From b559631d732843f5147b59610677680b4d7eafa8 Mon Sep 17 00:00:00 2001 From: Dave Anderson Date: Thu, 3 Apr 2014 14:58:19 -0400 Subject: [PATCH] Fix false-alarm warning from older compilers resulting from previous "bt -l" update: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit x86_64.c: In function ‘x86_64_exception_frame’: x86_64.c:3814: warning: ‘sp’ may be used uninitialized in this function (anderson@redhat.com) --- x86_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x86_64.c b/x86_64.c index 632c798..5364c30 100644 --- a/x86_64.c +++ b/x86_64.c @@ -3818,7 +3818,8 @@ x86_64_exception_frame(ulong flags, ulong kvaddr, char *local, long err; char buf[BUFSIZE]; - ms = machdep->machspec; + ms = machdep->machspec; + sp = NULL; if (!(machdep->flags & PT_REGS_INIT) || (flags == EFRAME_INIT)) { err = 0;