]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: fix uninitialized var case in qemuAgentGetFSInfo
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Mon, 12 Dec 2016 09:13:42 +0000 (12:13 +0300)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 12 Dec 2016 22:14:11 +0000 (17:14 -0500)
commit3ab9652a8679e17fb108ef7a6a6422dfd7149eb1
treeef16265c360c91e091b6f78725e4db10162907b6
parentd2c122262774f1c8b3b6fa9dc1894edde90121fb
qemu: agent: fix uninitialized var case in qemuAgentGetFSInfo

In case of 0 filesystems *info is not set while according
to virDomainGetFSInfo contract user should call free on it even
in case of 0 filesystems. Thus we need to properly set
it. NULL will be enough as free eats NULLs ok.
src/qemu/qemu_agent.c