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.
This commit is contained in:
Matthew Barnes 2015-05-07 16:02:39 -04:00
parent 223a9eaaa5
commit cd1551b1ee
1 changed files with 1 additions and 1 deletions

View File

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