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
2 additions
and
0 deletions
... | @@ -1288,6 +1288,8 @@ _amd_update_message (struct _amd_data *amd, struct _amd_message *mhm, | ... | @@ -1288,6 +1288,8 @@ _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 | else | ||
1292 | return 0; | ||
1291 | 1293 | ||
1292 | if (!flg) | 1294 | if (!flg) |
1293 | return 0; | 1295 | return 0; | ... | ... |
-
Please register or sign in to post a comment