
28 Nov
2019
28 Nov
'19
7:57 a.m.
On Thu, Nov 28, 2019 at 11:24:04AM +0100, Jiri Denemark wrote:
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: Erik Skultety <eskultet@redhat.com>