move declaration to top of block

This commit is contained in:
Enno Rehling 2014-06-29 20:09:21 -07:00
parent 5e356bc5fe
commit e39336e87a
1 changed files with 2 additions and 2 deletions

View File

@ -1437,12 +1437,12 @@ static int parse_spellbooks(xmlDocPtr doc)
static int parse_spells(xmlDocPtr doc)
{
pf_generic cast = 0;
pf_generic fumble = 0;
xmlXPathContextPtr xpath = xmlXPathNewContext(doc);
xmlXPathObjectPtr spells;
char zText[32];
strcpy(zText, "fumble_");
pf_generic cast = 0;
pf_generic fumble = 0;
/* reading eressea/spells/spell */
spells = xmlXPathEvalExpression(BAD_CAST "/eressea/spells/spell", xpath);