]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testQemuMonitorJSONqemuMonitorJSONGetTargetArch: Fix uninitialized use of 'arch'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 08:33:55 +0000 (09:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 15:21:47 +0000 (16:21 +0100)
commit8a2390f6409ca1ed0da10c6184258f4a3d3a0135
treebd71aba291f17084999f658e77a19b333461ef2c
parent1a53b2baaba247c962f56478c324a4f746dd82a6
testQemuMonitorJSONqemuMonitorJSONGetTargetArch: Fix uninitialized use of 'arch'

Refactor the cleanup control flow and use g_autofree for 'arch' so that
it's mandated that it's initialized.

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