mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: use g_new0 instead of VIR_ALLOC
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
@@ -176,9 +176,8 @@ static int testAdd(const void *args)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!list &&
|
||||
VIR_ALLOC(list) < 0)
|
||||
goto cleanup;
|
||||
if (!list)
|
||||
list = g_new0(char *, 1);
|
||||
|
||||
if (!(got = virStringListJoin((const char **)list, data->delim))) {
|
||||
VIR_DEBUG("Got no result");
|
||||
|
||||
Reference in New Issue
Block a user