aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-02-09 23:00:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-09 14:03:57 -0800
commita8823c1793362d30477905917c59ec47dc2f2717 (patch)
treebebdcaf80aa6d06e549c498492ef3cfb62aa3256
parent7c4c0802dceffdaa7bb3c41ce5fbc7f79d8a916a (diff)
downloadsubsurface-a8823c1793362d30477905917c59ec47dc2f2717.tar.gz
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>
-rw-r--r--parse-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 111075bfa..1d88ab6b7 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -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++;
}