linux-tdep.c: Fix "warning: 'siginfo_size' may be used uninitialized..."
authorMaciej W. Rozycki <macro@codesourcery.com>
Wed, 30 Oct 2013 01:05:18 +0000 (01:05 +0000)
committerMaciej W. Rozycki <macro@codesourcery.com>
Wed, 30 Oct 2013 01:05:18 +0000 (01:05 +0000)
* linux-tdep.c (linux_corefile_thread_callback): Preinitialize
siginfo_size.

gdb/ChangeLog
gdb/linux-tdep.c

index daceab8fde0138841bb336b7d370fd737f9ad502..bcad7a4db134365b69479b80e15d78fa855d7658 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
+       siginfo_size.
+
 2013-10-29  Tom Tromey  <tromey@redhat.com>
 
        * utils.c (reg): Move undefinition...
index 304fe0936e8a701fd6d799f0742e40da0684bf42..90b763f375e921ea327a0b441bd052a1e19ca362 100644 (file)
@@ -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);