diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-10-07 08:51:02 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-10-07 08:51:05 +0200 |
commit | 86f6d32eba86cd4f7b61456d04d642013a1c2fcb (patch) | |
tree | 8a5e6bfbf061158975621030271ee30ff9653d5b /src | |
parent | varlink: fix typo (diff) | |
download | systemd-86f6d32eba86cd4f7b61456d04d642013a1c2fcb.tar.xz systemd-86f6d32eba86cd4f7b61456d04d642013a1c2fcb.zip |
varlink: drop unnecessary condition
When 'exec' is true, 'c' is always non-NULL.
Fixes CID#1522384.
Diffstat (limited to '')
-rw-r--r-- | src/shared/varlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/varlink.c b/src/shared/varlink.c index 81ccae3bb7..1d6e7fb64e 100644 --- a/src/shared/varlink.c +++ b/src/shared/varlink.c @@ -544,7 +544,7 @@ int varlink_connect_url(Varlink **ret, const char *url) { } if (exec) - return varlink_connect_exec(ret, c ?: p, NULL); + return varlink_connect_exec(ret, c, NULL); return varlink_connect_address(ret, c ?: p); } |