Skip to content

Commit

Permalink
Merge pull request #45 from NETWAYS/fix/segfault_on_short_path
Browse files Browse the repository at this point in the history
Do not die unnecessarily on invocation without slashes
  • Loading branch information
RincewindsHat authored Oct 28, 2024
2 parents 777db0e + e07daf1 commit 342f3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ void parse_and_check_commandline(int argc, char **argv, struct configuration_str
int opt;

char *progname = strrchr(argv[0], '/');
if (*progname && *(progname + 1)) {
if (progname != NULL && *progname && *(progname + 1)) {
progname++;
} else {
progname = "check_interfaces";
Expand Down

0 comments on commit 342f3b6

Please sign in to comment.