summaryrefslogtreecommitdiff
path: root/gdb/skip.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-11-16 18:29:32 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-11-16 18:29:32 +0000
commit6326db22e3851acf0e60d279ef889d8d77111267 (patch)
tree380ebbb5a4c9c00368f8d08183a3591422667222 /gdb/skip.c
parent214bdd1565419783d5615a1b3a618edd99546e8f (diff)
downloadgdb-6326db22e3851acf0e60d279ef889d8d77111267.tar.gz
* skip.c (skip_function_command): Work around uninitialized
variable warning.
Diffstat (limited to 'gdb/skip.c')
-rw-r--r--gdb/skip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/skip.c b/gdb/skip.c
index 4bda3c42b5b..9f15c2fee69 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -160,7 +160,7 @@ skip_function_command (char *arg, int from_tty)
int pending = 0;
char *orig_arg = arg; /* decode_line_1 modifies the arg pointer. */
volatile struct gdb_exception decode_exception;
- struct symtabs_and_lines sals;
+ struct symtabs_and_lines sals = { 0 };
TRY_CATCH (decode_exception, RETURN_MASK_ERROR)
{
@@ -509,7 +509,7 @@ skip_re_set (void)
else if (e->function_name != 0)
{
char *func_name = e->function_name;
- struct symtabs_and_lines sals;
+ struct symtabs_and_lines sals = { 0 };
volatile struct gdb_exception decode_exception;
TRY_CATCH (decode_exception, RETURN_MASK_ERROR)