[PATCH 01/36] datatypes: Simplify error path of 'virGetDomain'
Pavel Hrdina
phrdina at redhat.com
Fri Jan 6 11:13:22 UTC 2023
On Thu, Jan 05, 2023 at 05:29:50PM +0100, Peter Krempa wrote:
> 'virObjectNew' can't return NULL. If we pre-check the arguments we don't
> need a cleanup label.
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> src/datatypes.c | 14 ++++----------
> 1 file changed, 4 insertions(+), 10 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230106/a470ff78/attachment.sig>
More information about the libvir-list
mailing list