* breakpoint.c (addr_string_to_sals): Avoid uninitialized
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 31 Mar 2011 11:19:54 +0000 (11:19 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 31 Mar 2011 11:19:54 +0000 (11:19 +0000)
variable compiler warning.

gdb/ChangeLog
gdb/breakpoint.c

index aef2c1eefbcad05b9ff802a1809b805911fa979c..3f49dcc028cadcf436e8d06b98909c6c3752cef4 100644 (file)
@@ -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
index f07ee10967049c33048d119ad1e46046d7d1ad3a..ed7c1c1a38ee61ffa3879d945301d3f3b11dac17 100644 (file)
@@ -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;