summaryrefslogtreecommitdiffstats
path: root/hl/test/gen_test_ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'hl/test/gen_test_ds.c')
-rw-r--r--hl/test/gen_test_ds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/test/gen_test_ds.c b/hl/test/gen_test_ds.c
index 368c083..a56e6cf 100644
--- a/hl/test/gen_test_ds.c
+++ b/hl/test/gen_test_ds.c
@@ -75,7 +75,7 @@ main(int argc, char **argv)
int nerrors = 0;
char filename[65];
- if (argc < 2) {
+ if (argc < 2 || !argv[0] || !argv[1]) {
HDprintf("Usage: gen_test [le | be]\n");
return 1;
}