diff options
author | NIIBE Yutaka <[email protected]> | 2017-04-12 07:01:16 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-04-12 07:01:16 +0000 |
commit | f52f6af834cc488d11612e349e4af023d69a45f4 (patch) | |
tree | 26e616add1798417cf7e1586eb219f1fa1754afb | |
parent | dirmngr: Fix possible null reference. (diff) | |
download | gnupg-f52f6af834cc488d11612e349e4af023d69a45f4.tar.gz gnupg-f52f6af834cc488d11612e349e4af023d69a45f4.zip |
tools: Fix condition for gpg-connect-agent.
* tools/gpg-connect-agent.c (start_agent): Add paren.
--
The intention is comparing the error code depending opt.use_dirmngr.
Considering C Operator Precedence, we should have paren here.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | tools/gpg-connect-agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c index ef71d2733..f20d33145 100644 --- a/tools/gpg-connect-agent.c +++ b/tools/gpg-connect-agent.c @@ -2237,7 +2237,7 @@ start_agent (void) { if (!opt.autostart && (gpg_err_code (err) - == opt.use_dirmngr? GPG_ERR_NO_DIRMNGR : GPG_ERR_NO_AGENT)) + == (opt.use_dirmngr? GPG_ERR_NO_DIRMNGR : GPG_ERR_NO_AGENT))) { /* In the no-autostart case we don't make gpg-connect-agent fail on a missing server. */ |