coverity: Silence potential null-deref warning

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-02-14 15:59:23 -05:00
parent 9de2ebe995
commit bdcb7aa9ed

View File

@ -78,7 +78,8 @@ static int add_to_simple_array(char ***array, ssize_t *capacity, char *value)
*capacity = new_capacity;
}
(*array)[count] = value;
if (array)
(*array)[count] = value;
return 0;
}