mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: Fix migration without parameters
The virTypedParamsFilter function doesn't mind params == NULL if nparams is zero. And there's no need to check for params == NULL && nparams > 0 because this is checked higher in the stack. In fact all the virCheckNonNull* checks in virTypedParamsFilter are useless. https://bugzilla.redhat.com/show_bug.cgi?id=1777094 Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
1b285196a2
commit
d802d9ab83
@ -403,10 +403,6 @@ virTypedParamsFilter(virTypedParameterPtr params,
|
||||
{
|
||||
size_t i, n = 0;
|
||||
|
||||
virCheckNonNullArgGoto(params, error);
|
||||
virCheckNonNullArgGoto(name, error);
|
||||
virCheckNonNullArgGoto(ret, error);
|
||||
|
||||
if (VIR_ALLOC_N(*ret, nparams) < 0)
|
||||
goto error;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user