aboutsummaryrefslogtreecommitdiff
path: root/gdb/memory-map.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-12-29 09:46:35 +0000
committerMark Kettenis <kettenis@gnu.org>2006-12-29 09:46:35 +0000
commit0cb31fdf92f1ff6045ac28d1e50c87e5418e9859 (patch)
tree824584dcf0fa451172f53cc85cc872a57da8c3cd /gdb/memory-map.c
parentcab737b91fedd56af3b24b5bdd3c3c2efb1426f2 (diff)
downloadgdb-0cb31fdf92f1ff6045ac28d1e50c87e5418e9859.zip
gdb-0cb31fdf92f1ff6045ac28d1e50c87e5418e9859.tar.gz
gdb-0cb31fdf92f1ff6045ac28d1e50c87e5418e9859.tar.bz2
* memory-map.c (memory_map_end_element): Move variable
declarations to the begining of the block.
Diffstat (limited to 'gdb/memory-map.c')
-rw-r--r--gdb/memory-map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/memory-map.c b/gdb/memory-map.c
index 991db1b..db4c22f 100644
--- a/gdb/memory-map.c
+++ b/gdb/memory-map.c
@@ -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')