Commit 796d9aef 796d9aef17c932732aa9fa79602f8955ac8f7454 by Sergey Poznyakoff

Bugfix.

* libmailutils/base/amd.c (_amd_update_message): Return
immediately if the message is not modified. Always use
initialized value of flg.
1 parent 9be3f81f
...@@ -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;
......