summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/musl_missing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/musl_missing.c b/src/shared/musl_missing.c
index f332627fc..a34e4eaec 100644
--- a/src/shared/musl_missing.c
+++ b/src/shared/musl_missing.c
@@ -34,9 +34,9 @@ const char *program_arg_name = NULL; /* Helper */
#if HAVE_PROGRAM_INVOCATION_NAME == 0
static void elogind_free_program_name(void) {
- if (program_invocation_name && (program_invocation_name != program_arg_name) && strlen(program_invocation_name))
+ if (program_invocation_name)
program_invocation_name = mfree(program_invocation_name);
- if (program_invocation_short_name && (program_invocation_short_name != program_arg_name) && strlen(program_invocation_short_name))
+ if (program_invocation_short_name)
program_invocation_short_name = mfree(program_invocation_short_name);
}