diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-09-16 20:02:34 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-09-16 20:02:34 +0200 |
commit | 766eb55c4e8929dd49bb71a8299b07b50af89e0a (patch) | |
tree | 126f2603a4180371f1664b17a421bc9db3f4cc86 | |
parent | 9e22721006311c4bd525799928a17ebb5ca211b1 (diff) |
We don't need the "body" element after all
But we *do* need to free the memory.
-rw-r--r-- | ezxml.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; } |