[ostree] gpg: Fix ot_gpgme_error_to_gio_error()



commit cd1551b1ee0b4452907698217cf789d1f75a3fd9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu May 7 16:02:39 2015 -0400

    gpg: Fix ot_gpgme_error_to_gio_error()
    
    Need to extract the error code from a gpgme_error_t, can't just compare
    it directly.

 src/libotutil/ot-gpg-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libotutil/ot-gpg-utils.c b/src/libotutil/ot-gpg-utils.c
index 88b436f..d603b09 100644
--- a/src/libotutil/ot-gpg-utils.c
+++ b/src/libotutil/ot-gpg-utils.c
@@ -34,7 +34,7 @@ ot_gpgme_error_to_gio_error (gpgme_error_t   gpg_error,
 
   /* XXX This list is incomplete.  Add cases as needed. */
 
-  switch (gpg_error)
+  switch (gpgme_err_code (gpg_error))
     {
       /* special case - shouldn't be here */
       case GPG_ERR_NO_ERROR:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]