Bail if argv[0] == NULL.

This commit is contained in:
Dianne Skoll
2022-01-25 22:21:20 -05:00
parent 6ae7e71fbf
commit b8c2d2b39b

View File

@@ -198,6 +198,9 @@ void InitRemind(int argc, char const *argv[])
if (!strcmp(s, "rem")) {
InvokedAsRem = 1;
}
} else {
fprintf(stderr, "Invoked with a NULL argv[0]; bailing because that's just plain bizarre.\n");
exit(1);
}
/* Parse the command-line options */