From: Peter Krempa Date: Thu, 11 Jun 2020 08:34:21 +0000 (+0200) Subject: remoteDispatchDomainMigratePrepare*: Don't pass uninitialized variable to VIR_FREE X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=94f26f01bdff168cf13fbe9caa85b0c4031ff541;p=libvirt.git 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 Reviewed-by: Ján Tomko