Skip to content

Commit

Permalink
Do not die unnecessarily on invocation without slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindsHat committed Oct 28, 2024
1 parent 777db0e commit e07daf1
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 e07daf1

Please sign in to comment.