mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
(jikstra, hpk) fix a logic bug introduced with the stock-string merge which set the better message only if it was empty
This commit is contained in:
committed by
dignifiedquire
parent
1cd2a62caf
commit
a67892d414
@@ -1723,7 +1723,7 @@ unsafe fn check_verified_properties(
|
||||
|
||||
unsafe fn set_better_msg<T: AsRef<str>>(mime_parser: &mut dc_mimeparser_t, better_msg: T) {
|
||||
let msg = better_msg.as_ref();
|
||||
if !(msg.len() > 0) && !mime_parser.parts.is_empty() {
|
||||
if msg.len() > 0 && !mime_parser.parts.is_empty() {
|
||||
let part = &mut mime_parser.parts[0];
|
||||
if (*part).type_0 == 10 {
|
||||
free(part.msg as *mut libc::c_void);
|
||||
|
||||
Reference in New Issue
Block a user