strv: don't access potentially NULL string arrays
This commit is contained in:
parent
62678deda2
commit
5b4fb02d89
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue