This commit is contained in:
jikstra
2019-09-04 16:53:28 +02:00
committed by holger krekel
parent 70d997964b
commit b9cfcce284

View File

@@ -1320,12 +1320,12 @@ pub unsafe extern "C" fn dc_get_securejoin_qr(
) -> *mut libc::c_char {
if context.is_null() {
eprintln!("ignoring careless call to dc_get_securejoin_qr()");
"".strdup()
return "".strdup();
}
let context = &*context;
dc_securejoin::dc_get_securejoin_qr(context, chat_id)
.unwrap_or("")
.unwrap_or("".to_string())
.strdup()
}