]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cmdDomHostname: Fix uninitialized use of 'hostname' by refactoring cleanup
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 08:29:02 +0000 (09:29 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 15:21:47 +0000 (16:21 +0100)
commit1a53b2baaba247c962f56478c324a4f746dd82a6
tree3b1e8e9d4e02c40600995b41a791532975a6153c
parent140c756f5ca598b5640d3a5342e8914e7f88bc9b
cmdDomHostname: Fix uninitialized use of 'hostname' by refactoring cleanup

Use 'g_autoptr' which mandates initialization for 'hostname' and also
for 'domain' to allow full refactor of the cleanup path.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c