strv: don't access potentially NULL string arrays

This commit is contained in:
Lennart Poettering
2014-02-23 12:01:35 +00:00
committed by Colin Guthrie
parent 0bf9388b5c
commit d79f41c58f
+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;
}