strv: don't access potentially NULL string arrays

This commit is contained in:
Lennart Poettering 2013-10-02 19:38:28 +02:00
parent 62678deda2
commit 5b4fb02d89

View file

@ -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;
}