]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuAgentGetInterfaceOneAddress: check for errors early
authorJán Tomko <jtomko@redhat.com>
Wed, 7 Oct 2020 12:04:04 +0000 (14:04 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 8 Oct 2020 09:16:08 +0000 (11:16 +0200)
commit031514e022cdb3a46a89df352932af1b65cad661
treee5cfaec2936143e2dc9f159f7fe8260921d43e0c
parentcac5cf33b2f8a0c88e252be8fa336514a1c4865b
qemuAgentGetInterfaceOneAddress: check for errors early

For readability, and to ensure we do allocation when
returning 0.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/qemu/qemu_agent.c