mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
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: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
451407c8c4
commit
90d7262552
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user