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:
parent
223a9eaaa5
commit
cd1551b1ee
|
|
@ -34,7 +34,7 @@ ot_gpgme_error_to_gio_error (gpgme_error_t gpg_error,
|
||||||
|
|
||||||
/* XXX This list is incomplete. Add cases as needed. */
|
/* XXX This list is incomplete. Add cases as needed. */
|
||||||
|
|
||||||
switch (gpg_error)
|
switch (gpgme_err_code (gpg_error))
|
||||||
{
|
{
|
||||||
/* special case - shouldn't be here */
|
/* special case - shouldn't be here */
|
||||||
case GPG_ERR_NO_ERROR:
|
case GPG_ERR_NO_ERROR:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue