mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 11:40:21 +00:00
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:
parent
9de2ebe995
commit
bdcb7aa9ed
@ -78,6 +78,7 @@ static int add_to_simple_array(char ***array, ssize_t *capacity, char *value)
|
|||||||
*capacity = new_capacity;
|
*capacity = new_capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array)
|
||||||
(*array)[count] = value;
|
(*array)[count] = value;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user