size_t nt = 10, i;
int ret = -1;
- if (VIR_ALLOC_N(t, nt) < 0)
- return -1;
+ t = g_new0(testDummyStruct, nt);
if (testCheckNonNull(t) < 0)
goto cleanup;
size_t nt = 10, i;
int ret = -1;
- if (VIR_ALLOC_N(t, nt) < 0)
- return -1;
+ t = g_new0(testDummyStruct, nt);
if (testCheckNonNull(t) < 0)
goto cleanup;
size_t nt = 10, at, i;
int ret = -1;
- if (VIR_ALLOC_N(t, nt) < 0)
- return -1;
+ t = g_new0(testDummyStruct, nt);
at = nt;
int ret = -1;
testDummyStruct *n = (void *)0xff;
- if (VIR_ALLOC_N(t, nt) < 0)
- return -1;
+ t = g_new0(testDummyStruct, nt);
if (testCheckNonNull(t) < 0)
goto cleanup;
nnums = 10;
VIR_DISPOSE_N(nums, nnums);
- if (VIR_ALLOC(num) < 0)
- return -1;
+ num = g_new0(int, 1);
VIR_DISPOSE(num);
nnums = 10;
- if (VIR_ALLOC_N(nums, nnums) < 0)
- return -1;
+ nums = g_new0(int, nnums);
VIR_DISPOSE_N(nums, nnums);