strv: don't access potentially NULL string arrays

This commit is contained in:
Lennart Poettering
2013-10-06 10:48:20 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 503283556c
commit 99d9092108
+3 -1
View File
@@ -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;
}