From 02d20e4a1097a1fa64fe9cbf7a6605abe442e735 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 31 Mar 2011 11:19:54 +0000 Subject: [PATCH] * breakpoint.c (addr_string_to_sals): Avoid uninitialized variable compiler warning. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aef2c1eefbc..3f49dcc028c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-31 Ulrich Weigand + + * breakpoint.c (addr_string_to_sals): Avoid uninitialized + variable compiler warning. + 2011-03-30 Thiago Jung Bauermann * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f07ee109670..ed7c1c1a38e 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -10584,7 +10584,7 @@ addr_string_to_sals (struct breakpoint *b, char *addr_string, int *found) { char *s; int marker_spec, not_found; - struct symtabs_and_lines sals; + struct symtabs_and_lines sals = {0}; struct gdb_exception e; s = addr_string; -- 2.30.2