summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sordi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sordi.c b/src/sordi.c
index 8843162..7681878 100644
--- a/src/sordi.c
+++ b/src/sordi.c
@@ -125,6 +125,11 @@ main(int argc, char** argv)
}
}
+ if (a == argc) {
+ fprintf(stderr, "Missing input\n");
+ return 1;
+ }
+
const uint8_t* input = (const uint8_t*)argv[a++];
if (from_file) {
in_name = in_name ? in_name : input;