[Pkg-gnupg-commit] [gnupg2] 64/132: tools: Fix condition for gpg-connect-agent.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit f52f6af834cc488d11612e349e4af023d69a45f4
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Apr 12 16:01:16 2017 +0900

    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 <gniibe at fsij.org>
---
 tools/gpg-connect-agent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c
index ef71d27..f20d331 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.  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list