mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 15:04:14 +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,7 +78,8 @@ static int add_to_simple_array(char ***array, ssize_t *capacity, char *value)
|
|||||||
*capacity = new_capacity;
|
*capacity = new_capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*array)[count] = value;
|
if (array)
|
||||||
|
(*array)[count] = value;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user