Commit 1c7d50a6 1c7d50a62de57fbb0552bcde955db928908b2a98 by Sergey Poznyakoff

Bugfix.

* libmailutils/mailbox/mailbox.c (_MBOX_CHECK_FLAGS): Fix return code.
1 parent e072a273
...@@ -448,7 +448,7 @@ mu_mailbox_flush (mu_mailbox_t mbox, int expunge) ...@@ -448,7 +448,7 @@ mu_mailbox_flush (mu_mailbox_t mbox, int expunge)
448 if (mbox->flags & _MU_MAILBOX_REMOVED) \ 448 if (mbox->flags & _MU_MAILBOX_REMOVED) \
449 return MU_ERR_MBX_REMOVED; \ 449 return MU_ERR_MBX_REMOVED; \
450 if (!(mbox->flags & _MU_MAILBOX_OPEN)) \ 450 if (!(mbox->flags & _MU_MAILBOX_OPEN)) \
451 return _MU_MAILBOX_OPEN 451 return MU_ERR_NOT_OPEN
452 452
453 #define _MBOX_CHECK(mbox,method) \ 453 #define _MBOX_CHECK(mbox,method) \
454 _MBOX_CHECK_FLAGS(mbox); \ 454 _MBOX_CHECK_FLAGS(mbox); \
......