Commit bdcb7aa9 by Stéphane Graber

coverity: Silence potential null-deref warning

parent 9de2ebe9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment