From: Martin Kletzander Date: Mon, 17 Jul 2017 12:05:53 +0000 (+0200) Subject: qemu: Use the proper string in qemuBlock...JSONSocketAddress() X-Git-Tag: v3.6.0-rc1~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90c27b8e488c2d7bc045b906996f28824194410c;p=thirdparty%2Flibvirt.git qemu: Use the proper string in qemuBlock...JSONSocketAddress() Recent refactors made it so that the function may use uninitialized pointer, but it actually wanted to use a different variable and value at all. Signed-off-by: Martin Kletzander --- diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index ccaf326110..93124c5ba4 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -482,7 +482,7 @@ qemuBlockStorageSourceBuildHostsJSONSocketAddress(virStorageSourcePtr src, case VIR_STORAGE_NET_HOST_TRANS_LAST: virReportError(VIR_ERR_INTERNAL_ERROR, _("transport protocol '%s' is not yet supported"), - transport); + virStorageNetHostTransportTypeToString(host->transport)); goto cleanup; }