]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remoteDispatchDomainMigratePrepare*: Don't pass uninitialized variable to VIR_FREE
authorPeter Krempa <pkrempa@redhat.com>
Thu, 11 Jun 2020 08:34:21 +0000 (10:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jun 2020 08:27:37 +0000 (10:27 +0200)
commit94f26f01bdff168cf13fbe9caa85b0c4031ff541
treedf80a7f7d78ac36ce1705b80f7f59dcb8b4ecf42
parentc5c0dc3c8140cf8c7208fc00fbe69a4a9a8e933f
remoteDispatchDomainMigratePrepare*: Don't pass uninitialized variable to VIR_FREE

'uri_out' may be passed to VIR_FREE uninitialized if 'conn' is NULL.
Unfortunately the compiler isn't able to detect this problem when
VIR_FREE is implemented using g_clear_pointer. Initialize the variable.

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