From: Peter Krempa <pkre...@redhat.com> Since the refactor to use proper enum type for the network transport the 'transport' variable is no longer filled. Remove it and fix the error message which references it without using NULLSTR.
Fixes: 452695926dc Signed-off-by: Peter Krempa <pkre...@redhat.com> --- src/conf/domain_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 99ecb03067..53ab502306 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -6017,7 +6017,6 @@ virDomainStorageNetworkParseHost(xmlNodePtr hostnode, virStorageNetHostDef *host) { int ret = -1; - g_autofree char *transport = NULL; g_autofree char *port = NULL; memset(host, 0, sizeof(*host)); @@ -6043,7 +6042,7 @@ virDomainStorageNetworkParseHost(xmlNodePtr hostnode, host->socket != NULL) { virReportError(VIR_ERR_XML_ERROR, _("transport '%1$s' does not support socket attribute"), - transport); + virStorageNetHostTransportTypeToString(host->transport)); goto cleanup; } -- 2.49.0