parse-xml.c: Fix a warning about missing braces

warning: suggest explicit braces to avoid ambiguous 'else'

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2014-02-09 23:00:33 +02:00 committed by Dirk Hohndel
parent 7c4c0802dc
commit a8823c1793

View file

@ -1929,11 +1929,12 @@ static xmlDoc *test_xslt_transforms(xmlDoc *doc, const char **params, char **err
char *attribute;
while (info->root) {
if ((strcasecmp(root_element->name, info->root) == 0))
if ((strcasecmp(root_element->name, info->root) == 0)) {
if (info->attribute == NULL)
break;
else if (xmlGetProp(root_element, info->attribute) != NULL)
break;
}
info++;
}