diff options
author | Maciej W. Rozycki <macro@codesourcery.com> | 2013-10-30 01:05:18 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@codesourcery.com> | 2013-10-30 01:05:18 +0000 |
commit | e17aaa33b10ed1d047a01cefb5547844c0597836 (patch) | |
tree | 2aee1f0f421c8375839e27c6706946545c09be2e /gdb/linux-tdep.c | |
parent | 70cc877f6e7fc1bb19d3a60b9e10fafd38b86b4a (diff) | |
download | gdb-e17aaa33b10ed1d047a01cefb5547844c0597836.zip gdb-e17aaa33b10ed1d047a01cefb5547844c0597836.tar.gz gdb-e17aaa33b10ed1d047a01cefb5547844c0597836.tar.bz2 |
linux-tdep.c: Fix "warning: 'siginfo_size' may be used uninitialized..."
* linux-tdep.c (linux_corefile_thread_callback): Preinitialize
siginfo_size.
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r-- | gdb/linux-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 304fe09..90b763f 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); |