[Pkg-gnupg-commit] [gnupg2] 74/132: g10: Fix import/export filter property match.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:43 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 af5f8ecf51f5e1f33e832d4946d02313b78a0536
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Apr 17 09:08:31 2017 +0900

    g10: Fix import/export filter property match.
    
    * g10/import.c (impex_filter_getval): Fix to "else if".
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 g10/import.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/import.c b/g10/import.c
index 54d649b..ba1c44a 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1261,7 +1261,7 @@ impex_filter_getval (void *cookie, const char *propname)
           snprintf (numbuf, sizeof numbuf, "%d", pk->pubkey_algo);
           result = numbuf;
         }
-      if (!strcmp (propname, "key_created"))
+      else if (!strcmp (propname, "key_created"))
         {
           snprintf (numbuf, sizeof numbuf, "%lu", (ulong)pk->timestamp);
           result = numbuf;

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