From: Ulrich Weigand Date: Thu, 31 Mar 2011 11:19:54 +0000 (+0000) Subject: * breakpoint.c (addr_string_to_sals): Avoid uninitialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02d20e4a1097a1fa64fe9cbf7a6605abe442e735;p=binutils-gdb.git * breakpoint.c (addr_string_to_sals): Avoid uninitialized variable compiler warning. --- 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;