]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainNetIPInfoParseXML: Remove pointless automatic clearing of 'route' and 'ip'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Sep 2022 15:47:49 +0000 (17:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Oct 2022 12:43:17 +0000 (14:43 +0200)
commitecdbc4ea4e7d6e142a6345d99650a903177e7ed1
tree30497f8ae2637e13cf74540249058f9ffed18076
parent5832c73a8253ea86d3a985c868e586a4dc9936a2
virDomainNetIPInfoParseXML: Remove pointless automatic clearing of 'route' and 'ip'

The variables are only used in code paths which can't fail after they
are allocated.

Additionally decrease scope of the variables.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c