aboutsummaryrefslogtreecommitdiff
path: root/tool/src-verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'tool/src-verify.c')
-rw-r--r--tool/src-verify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/src-verify.c b/tool/src-verify.c
index 762904656..0c7ed6f4c 100644
--- a/tool/src-verify.c
+++ b/tool/src-verify.c
@@ -854,12 +854,16 @@ int main(int argc, char **argv){
xErr = errorMsgNH;
continue;
}
+ usage:
fprintf(stderr, "Usage: %s DIRECTORY\n"
" or: %s --sha1 FILE ...\n"
" or: %s --sha3 FILE ...\n",
argv[0], argv[0], argv[0]);
return 1;
}
+ if( !zDir ){
+ goto usage;
+ }
if( strlen(zDir)>1000 ){
fprintf(stderr, "Directory argument too big: [%s]\n", zDir);
return 1;