From 09d5b760e0914ae1438523646465f293587b0977 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sat, 24 Sep 2016 11:58:59 +0200 Subject: Return on error --- ezxml.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3