* memory-map.c (memory_map_end_element): Move variable
authorMark Kettenis <kettenis@gnu.org>
Fri, 29 Dec 2006 09:46:35 +0000 (09:46 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 29 Dec 2006 09:46:35 +0000 (09:46 +0000)
declarations to the begining of the block.

gdb/ChangeLog
gdb/memory-map.c

index 04e96a6bab04843f25cd456042e310ef7eca5c21..ced7ede00422d0f60a0f901557902aed6c7fb00a 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-29  Mark Kettenis  <kettenis@gnu.org>
+
+       * memory-map.c (memory_map_end_element): Move variable
+       declarations to the begining of the block.
+
 2006-12-28  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * ia64-tdep.c (get_kernel_table): Correct signedness in check
index 991db1bf91b7fca7e3889630c513ddacfd0f338e..db4c22f8ee1780fa858213c5d46acf5b3081ffe2 100644 (file)
@@ -141,10 +141,11 @@ memory_map_end_element (void *data_, const XML_Char *name)
        {
          if (strcmp (data->property_name, "blocksize") == 0)
            {
+             char *end = NULL;
+
              if (!data->character_data)
                throw_error (XML_PARSE_ERROR,
                             _("Empty content of 'property' element"));
-             char *end = NULL;
              data->currently_parsing->attrib.blocksize
                = strtoul (data->character_data, &end, 0);
              if (*end != '\0')