From e07daf1a010a121764ee4b10649f987f50e950bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:13:27 +0100 Subject: [PATCH] Do not die unnecessarily on invocation without slashes --- check_interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_interfaces.c b/check_interfaces.c index eafa113..d93fdd4 100644 --- a/check_interfaces.c +++ b/check_interfaces.c @@ -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";