fix python data2/string handling and reduce extra code needed

This commit is contained in:
holger krekel
2020-05-22 16:18:54 +02:00
parent 3947e90b36
commit c43285f6ac
7 changed files with 24 additions and 43 deletions

View File

@@ -643,8 +643,8 @@ pub unsafe extern "C" fn dc_event_get_data3_str(event: *mut dc_event_t) -> *mut
| Event::SecurejoinInviterProgress { .. }
| Event::SecurejoinJoinerProgress { .. } => ptr::null_mut(),
Event::ImexFileWritten(file) => {
let data1 = file.to_c_string().unwrap_or_default();
data1.into_raw()
let data2 = file.to_c_string().unwrap_or_default();
data2.into_raw()
}
}
}