diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-22 11:33:09 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-22 11:33:09 +0100 |
commit | a533d1e81d683eb0e1679f084c604d0674b5e130 (patch) | |
tree | 8284e393a0e91f1d46cbbbd0fe8141282d270ab1 /ffi/src | |
parent | 2ac59632525d4997bfc2b9ce08fa9cf75d57d8a7 (diff) |
openpgp, core: Return old value in setters.
- Fixes #147.
Diffstat (limited to 'ffi/src')
-rw-r--r-- | ffi/src/core.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi/src/core.rs b/ffi/src/core.rs index 12ff469d..8ad3a655 100644 --- a/ffi/src/core.rs +++ b/ffi/src/core.rs @@ -177,7 +177,7 @@ pub extern "system" fn sq_config_home(cfg: *mut Config, home: *const c_char) { let cfg = ffi_param_ref_mut!(cfg); let home = ffi_param_cstr!(home).to_string_lossy(); - cfg.set_home(home.as_ref()) + cfg.set_home(home.as_ref()); } /// Set the directory containing backend servers. @@ -186,7 +186,7 @@ pub extern "system" fn sq_config_lib(cfg: *mut Config, lib: *const c_char) { let cfg = ffi_param_ref_mut!(cfg); let lib = ffi_param_cstr!(lib).to_string_lossy(); - cfg.set_lib(&lib.as_ref()) + cfg.set_lib(&lib.as_ref()); } /// Sets the network policy. |