[Pkg-gnupg-commit] [gnupg2] 30/118: g10: Fix error detection.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 15 18:25:02 UTC 2016


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

dkg pushed a commit to branch encoding-and-speling
in repository gnupg2.

commit 5b48960a8a2555db7bf992261de9e922838c9913
Author: Neal H. Walfield <neal at g10code.com>
Date:   Wed Aug 31 12:11:58 2016 +0200

    g10: Fix error detection.
    
    * g10/tofu.c: first_seen == 0 is not an error.
    
    --
    Signed-off-by: Neal H. Walfield <neal at g10code.com>
    
    Fixes-commit: 0f1f02ac
    Regression-due-to: 45bb9a2a
---
 g10/tofu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/tofu.c b/g10/tofu.c
index 4285e96..968b89a 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2023,7 +2023,7 @@ show_statistics (tofu_dbs_t dbs, const char *fingerprint,
 
 	}
 
-      if (messages == -1 || !first_seen)
+      if (messages == -1 || first_seen == -1)
         {
           write_stats_status (outfp, 0, TOFU_POLICY_NONE, 0, 0);
           if (!outfp)

-- 
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