summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-09-16 20:02:34 +0200
committerSilvan Jegen <s.jegen@gmail.com>2016-09-16 20:02:34 +0200
commit766eb55c4e8929dd49bb71a8299b07b50af89e0a (patch)
tree126f2603a4180371f1664b17a421bc9db3f4cc86
parent9e22721006311c4bd525799928a17ebb5ca211b1 (diff)
We don't need the "body" element after all
But we *do* need to free the memory.
-rw-r--r--ezxml.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ezxml.c b/ezxml.c
index 3b6094e..4a063bc 100644
--- a/ezxml.c
+++ b/ezxml.c
@@ -14,11 +14,7 @@ int process(char *fn) {
printf("article-title: %s\n", title->txt);
}
- ezxml_t body = ezxml_get(ezdoc, "body", -1);
- if (!body) {
- fprintf(stderr, "No body-tag found in file '%s'. Exiting.\n", fn);
- return 1;
- }
+ ezxml_free(ezdoc);
return 0;
}