summaryrefslogtreecommitdiff
path: root/mediaxml.c
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2007-03-07 01:25:23 +0000
committerNick White <arch@njw.me.uk>2007-03-07 01:25:23 +0000
commit49472a3a8ff731dcccd8099c4070119426c49145 (patch)
tree2f50580a790ddcfddbd1329727c95caf354a295b /mediaxml.c
parent38d38ea919c6a2e3faeaee0b036607259f7a428c (diff)
various checks & cleanups, default usage, hook script
Add file valid checks to update Add file checks to parse contents Remove empty files which don't download Automatically attempt to update contents if they cannot be opened Add default showopts if no options are passed Remove show struct mention in usage Move order of usage Add alternative media toc file option Added commit hook script git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-6
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;