From e17aaa33b10ed1d047a01cefb5547844c0597836 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 30 Oct 2013 01:05:18 +0000 Subject: [PATCH] linux-tdep.c: Fix "warning: 'siginfo_size' may be used uninitialized..." * linux-tdep.c (linux_corefile_thread_callback): Preinitialize siginfo_size. --- gdb/ChangeLog | 5 +++++ gdb/linux-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index daceab8fde0..bcad7a4db13 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-10-30 Maciej W. Rozycki + + * linux-tdep.c (linux_corefile_thread_callback): Preinitialize + siginfo_size. + 2013-10-29 Tom Tromey * utils.c (reg): Move undefinition... diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 304fe0936e8..90b763f375e 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1193,7 +1193,7 @@ linux_corefile_thread_callback (struct thread_info *info, void *data) struct cleanup *old_chain; struct regcache *regcache; gdb_byte *siginfo_data; - LONGEST siginfo_size; + LONGEST siginfo_size = 0; regcache = get_thread_arch_regcache (info->ptid, args->gdbarch); -- 2.30.2