diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-09-24 11:58:59 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-09-24 11:58:59 +0200 |
commit | 09d5b760e0914ae1438523646465f293587b0977 (patch) | |
tree | 964e1e2e30241e2210a1612d947a13bed20140e1 | |
parent | bccfce55f3f53256802ce51827303dce9b47ae5d (diff) |
Return on error
-rw-r--r-- | ezxml.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |