linux-tdep.c: Fix "warning: 'siginfo_size' may be used uninitialized..."

* linux-tdep.c (linux_corefile_thread_callback): Preinitialize
	siginfo_size.
This commit is contained in:
Maciej W. Rozycki
2013-10-30 01:05:18 +00:00
parent 70cc877f6e
commit e17aaa33b1
2 changed files with 6 additions and 1 deletions

View 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...

View 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);