mirror of
https://github.com/chatmail/core.git
synced 2026-05-18 22:36:29 +03:00
Fix ffi interoperability issue
Clients expect empty "dbfile" argument to be treated as NULL value. This change fulfills their expectations. Closes: #530
This commit is contained in:
committed by
holger krekel
parent
95d8665dbe
commit
e0e82e1877
@@ -233,7 +233,7 @@ pub unsafe extern "C" fn dc_open(
|
||||
let ffi_context = &*context;
|
||||
let rust_cb = move |_ctx: &Context, evt: Event| ffi_context.translate_cb(evt);
|
||||
|
||||
let ctx = if blobdir.is_null() {
|
||||
let ctx = if blobdir.is_null() || *blobdir == 0 {
|
||||
Context::new(
|
||||
Box::new(rust_cb),
|
||||
ffi_context.os_name.clone(),
|
||||
|
||||
Reference in New Issue
Block a user