Fix errorneous ffi check in dc_send_msg

This commit is contained in:
Dmitry Bogatov
2019-09-01 22:45:49 +00:00
parent c1a78d9c3e
commit fb5d53226d

View File

@@ -498,7 +498,7 @@ pub unsafe extern "C" fn dc_send_msg(
chat_id: u32,
msg: *mut dc_msg_t,
) -> u32 {
if context.is_null() || chat_id == 0 || msg.is_null() {
if context.is_null() || msg.is_null() {
eprintln!("ignoring careless call to dc_send_msg()");
return 0;
}