]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSystemdGetMachineNameByPID: Initialize @reply
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 5 Feb 2016 16:17:45 +0000 (17:17 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 5 Feb 2016 16:17:45 +0000 (17:17 +0100)
commita3b168d01a6254a5972d4eda87d7cbc3d9cdb3ef
tree1047bce2ead5c616b6cd6b3c9cbacb5d144b0900
parent065054daa71f645fc83aff0271f194d326208616
virSystemdGetMachineNameByPID: Initialize @reply

I've noticed that variable @reply is not initialized and if
something at the beginning of the function fails, e.g.
virDBusGetSystemBus(), the control jump straight to cleanup label
where dbus_message_unref() is then called over this uninitialized
variable.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virsystemd.c