* memory-map.c (memory_map_end_element): Move variable

declarations to the begining of the block.
This commit is contained in:
Mark Kettenis 2006-12-29 09:46:35 +00:00
parent cab737b91f
commit 0cb31fdf92
2 changed files with 7 additions and 1 deletions

View 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

View 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')