提交 90d72625 编写于 作者: J Ján Tomko

remote: simplify condition

In remoteConnectOpen, conn->uri cannot be NULL in the second
part of the OR expression due to short-circuit evaluation.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 451407c8
......@@ -1310,7 +1310,7 @@ remoteConnectOpen(virConnectPtr conn,
int ret, rflags = 0;
const char *autostart = virGetEnvBlockSUID("LIBVIRT_AUTOSTART");
if (inside_daemon && (!conn->uri || (conn->uri && !conn->uri->server)))
if (inside_daemon && (!conn->uri || !conn->uri->server))
return VIR_DRV_OPEN_DECLINED;
if (!(priv = remoteAllocPrivateData()))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册