summaryrefslogtreecommitdiff
path: root/mediaxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'mediaxml.c')
-rw-r--r--mediaxml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediaxml.c b/mediaxml.c
index b9631e2..54dd514 100644
--- a/mediaxml.c
+++ b/mediaxml.c
@@ -132,7 +132,8 @@ iss ** parsemedia(char * filepath, iss ** issue, int * no_of_issues)
xmlDocPtr media_file;
xmlNodePtr node, itnode;
- ready_xml(filepath, "media", &media_file, &node);
+ if(ready_xml(filepath, "media", &media_file, &node))
+ return NULL;
*node = *node->xmlChildrenNode;