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 <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2017-07-17 14:05:53 +02:00
parent dff020c91d
commit 90c27b8e48

View File

@ -482,7 +482,7 @@ qemuBlockStorageSourceBuildHostsJSONSocketAddress(virStorageSourcePtr src,
case VIR_STORAGE_NET_HOST_TRANS_LAST: case VIR_STORAGE_NET_HOST_TRANS_LAST:
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("transport protocol '%s' is not yet supported"), _("transport protocol '%s' is not yet supported"),
transport); virStorageNetHostTransportTypeToString(host->transport));
goto cleanup; goto cleanup;
} }