mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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;
|
char *attribute;
|
||||||
|
|
||||||
while (info->root) {
|
while (info->root) {
|
||||||
if ((strcasecmp(root_element->name, info->root) == 0))
|
if ((strcasecmp(root_element->name, info->root) == 0)) {
|
||||||
if (info->attribute == NULL)
|
if (info->attribute == NULL)
|
||||||
break;
|
break;
|
||||||
else if (xmlGetProp(root_element, info->attribute) != NULL)
|
else if (xmlGetProp(root_element, info->attribute) != NULL)
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
info++;
|
info++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue