Bugfix.
* libmailutils/base/amd.c (_amd_update_message): Return immediately if the message is not modified. Always use initialized value of flg.
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -1288,7 +1288,9 @@ _amd_update_message (struct _amd_data *amd, struct _amd_message *mhm, | ... | @@ -1288,7 +1288,9 @@ _amd_update_message (struct _amd_data *amd, struct _amd_message *mhm, |
1288 | flg = mu_message_is_modified (mhm->message); | 1288 | flg = mu_message_is_modified (mhm->message); |
1289 | else if (mhm->attr_flags & MU_ATTRIBUTE_MODIFIED) | 1289 | else if (mhm->attr_flags & MU_ATTRIBUTE_MODIFIED) |
1290 | flg = MU_MSG_ATTRIBUTE_MODIFIED; | 1290 | flg = MU_MSG_ATTRIBUTE_MODIFIED; |
1291 | 1291 | else | |
1292 | return 0; | ||
1293 | |||
1292 | if (!flg) | 1294 | if (!flg) |
1293 | return 0; | 1295 | return 0; |
1294 | 1296 | ... | ... |
-
Please register or sign in to post a comment