diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-01-16 17:02:11 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-01-16 17:02:11 +0100 |
commit | 4477f74b07070bdd95a228cd4b97dd5f9fb70aaf (patch) | |
tree | 5c66d334e6aea11e0a092a3c552da9376cb0fcda /ffi/src/openpgp/armor.rs | |
parent | 99ad668da45db0d74b74d1e4888f1c286130c6a4 (diff) |
ffi: Introduce setter for the error in the Context.
Diffstat (limited to 'ffi/src/openpgp/armor.rs')
-rw-r--r-- | ffi/src/openpgp/armor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/src/openpgp/armor.rs b/ffi/src/openpgp/armor.rs index 7616a03d..db6672d6 100644 --- a/ffi/src/openpgp/armor.rs +++ b/ffi/src/openpgp/armor.rs @@ -245,7 +245,7 @@ pub extern "system" fn sq_armor_reader_headers(ctx: *mut Context, buf }, Err(e) => { - ctx.e = Some(e); + ctx.set_error(e); ptr::null_mut() }, }; |