summaryrefslogtreecommitdiff
path: root/mediarev.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 /mediarev.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 'mediarev.c')
-rw-r--r--mediarev.c4
1 files changed, 4 insertions, 0 deletions
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;
}