diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/env-util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/env-util.c b/src/shared/env-util.c index 5e29629efd..7976881ef6 100644 --- a/src/shared/env-util.c +++ b/src/shared/env-util.c @@ -405,7 +405,9 @@ char **strv_env_clean_log(char **e, const char *message) { e[k++] = *p; } - e[k] = NULL; + if (e) + e[k] = NULL; + return e; } |