summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2018-11-12 08:57:20 +0100
committerSven Eden <sven.eden@prydeworx.com>2018-11-12 08:57:20 +0100
commit693b0f31439318d68c5a42e79f7e8a751b4cffb3 (patch)
treeeb03404cd6fecc22a6579688e2c81aa232e171ab
parent59e70b352f9b61ecd881f15485c607a670f9b32a (diff)
Prep v239.2: With the new program_invocation[_short]_name guards, the previous thorough checks became unneccessary
-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 f332627..a34e4ea 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);
}