diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-03-31 11:19:54 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-03-31 11:19:54 +0000 |
commit | 02d20e4a1097a1fa64fe9cbf7a6605abe442e735 (patch) | |
tree | 66f2f8f9f783c38483f396cd843089d4c62914c2 | |
parent | 083faca904b9186ace2086deb7126a1b15f23f4a (diff) | |
download | gdb-02d20e4a1097a1fa64fe9cbf7a6605abe442e735.zip gdb-02d20e4a1097a1fa64fe9cbf7a6605abe442e735.tar.gz gdb-02d20e4a1097a1fa64fe9cbf7a6605abe442e735.tar.bz2 |
* breakpoint.c (addr_string_to_sals): Avoid uninitialized
variable compiler warning.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aef2c1e..3f49dcc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> + + * breakpoint.c (addr_string_to_sals): Avoid uninitialized + variable compiler warning. + 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f07ee10..ed7c1c1 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; |