From 49472a3a8ff731dcccd8099c4070119426c49145 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 7 Mar 2007 01:25:23 +0000 Subject: 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 --- mediarev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mediarev.c') diff --git a/mediarev.c b/mediarev.c index 9877561..777e786 100644 --- a/mediarev.c +++ b/mediarev.c @@ -77,6 +77,10 @@ int parsemediagz(char * media_path, med * cur_media, int * no_of_media) } strcpy(cur_line,""); /* reset cur_line */ } + + if(*no_of_media == -1) + return 1; + return 0; } -- cgit v1.2.3