Skip to content

Commit 342f3b6

Browse files
Merge pull request #45 from NETWAYS/fix/segfault_on_short_path
Do not die unnecessarily on invocation without slashes
2 parents 777db0e + e07daf1 commit 342f3b6

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)