提交 09877303 编写于 作者: J Jim Fehlig

util: honor reportError parameter in virSocketAddrParseInternal

Signed-off-by: NJim Fehlig <jfehlig@suse.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 cd9bbb7f
......@@ -107,7 +107,8 @@ virSocketAddrParseInternal(struct addrinfo **res,
int err;
if (val == NULL) {
virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
if (reportError)
virReportError(VIR_ERR_INVALID_ARG, "%s", _("Missing address"));
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册