* memory-map.c (parse_memory_map): Don't use an empty struct
authorPedro Alves <palves@redhat.com>
Thu, 25 Oct 2007 21:43:42 +0000 (21:43 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 25 Oct 2007 21:43:42 +0000 (21:43 +0000)
initializer.

gdb/ChangeLog
gdb/memory-map.c

index 400457a..98d860e 100644 (file)
@@ -1,5 +1,10 @@
 2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
 
+       * memory-map.c (parse_memory_map): Don't use an empty struct
+       initializer.
+
+2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
+
        * signals/signals.c (signals): Update pointer to enum
        target_signal declaration.
 
index d8283ac..a13fbeb 100644 (file)
@@ -180,7 +180,7 @@ parse_memory_map (const char *memory_map)
   struct gdb_xml_parser *parser;
   VEC(mem_region_s) *result = NULL;
   struct cleanup *before_deleting_result, *back_to;
-  struct memory_map_parsing_data data = {};
+  struct memory_map_parsing_data data = { NULL };
 
   back_to = make_cleanup (null_cleanup, NULL);
   parser = gdb_xml_create_parser_and_cleanup (_("target memory map"),