mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
7c4c0802dc
commit
a8823c1793
1 changed files with 2 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue