From caf4328c57b4f7a01b457dcd3137aba195f2c445 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 16 Nov 2011 18:29:34 +0000 Subject: [PATCH] * skip.c (skip_function_command): Work around uninitialized variable warning. --- gdb/ChangeLog | 5 +++++ gdb/skip.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 13e401ee79c..6915959a7bb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-11-16 Ulrich Weigand + + * skip.c (skip_function_command): Work around uninitialized + variable warning. + 2011-11-16 David S. Miller * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and 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) -- 2.30.2