mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
strv: don't access potentially NULL string arrays
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
503283556c
commit
99d9092108
@@ -406,7 +406,9 @@ char **strv_env_clean_log(char **e, const char *message) {
|
||||
e[k++] = *p;
|
||||
}
|
||||
|
||||
e[k] = NULL;
|
||||
if (e)
|
||||
e[k] = NULL;
|
||||
|
||||
return e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user