summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-09-24 11:58:59 +0200
committerSilvan Jegen <s.jegen@gmail.com>2016-09-24 11:58:59 +0200
commit09d5b760e0914ae1438523646465f293587b0977 (patch)
tree964e1e2e30241e2210a1612d947a13bed20140e1
parentbccfce55f3f53256802ce51827303dce9b47ae5d (diff)
Return on error
-rw-r--r--ezxml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ezxml.c b/ezxml.c
index 4a063bc..0e32e20 100644
--- a/ezxml.c
+++ b/ezxml.c
@@ -7,6 +7,7 @@ int process(char *fn) {
ezxml_t ezdoc = ezxml_parse_file(fn);
if (!ezdoc) {
fprintf(stderr, "Error when parsing file '%s'.\n", fn);
+ return 1;
}
ezxml_t title = ezxml_get(ezdoc, "front", 0, "article-meta", 0, "title-group", 0, "article-title", -1);