mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Bail if argv[0] == NULL.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user