Skip to content

Commit e07daf1

Browse files
committed
Do not die unnecessarily on invocation without slashes
1 parent 777db0e commit e07daf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_interfaces.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ void parse_and_check_commandline(int argc, char **argv, struct configuration_str
11951195
int opt;
11961196

11971197
char *progname = strrchr(argv[0], '/');
1198-
if (*progname && *(progname + 1)) {
1198+
if (progname != NULL && *progname && *(progname + 1)) {
11991199
progname++;
12001200
} else {
12011201
progname = "check_interfaces";

0 commit comments

Comments
 (0)