Fix useless call to gpg_err_code for sig->validity
authorColin Leroy <colin@colino.net>
Thu, 24 Oct 2013 19:49:19 +0000 (21:49 +0200)
committerColin Leroy <colin@colino.net>
Thu, 24 Oct 2013 19:49:19 +0000 (21:49 +0200)
src/plugins/pgpcore/sgpgme.c

index a2d7fa38a468e53072f9d81d83b100e4d98effef..77c0774e6a625a98d969f67a3a455bd372fe1d9a 100644 (file)
@@ -106,7 +106,7 @@ SignatureStatus sgpgme_sigstat_gpgme_to_privacy(gpgme_ctx_t ctx, gpgme_verify_re
        debug_print("err code %d\n", gpg_err_code(sig->status));
        switch (gpg_err_code(sig->status)) {
        case GPG_ERR_NO_ERROR:
-               switch (gpg_err_code(sig->validity)) {
+               switch (sig->validity) {
                case GPGME_VALIDITY_NEVER:
                        return SIGNATURE_INVALID;
                case GPGME_VALIDITY_UNKNOWN: