strv: don't access potentially NULL string arrays

This commit is contained in:
Lennart Poettering
2013-10-02 19:45:12 +02:00
parent 62678deda2
commit 5b4fb02d89
+3 -1
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;
}