From: Brendan Cully Date: Sun, 26 Jun 2011 03:07:57 +0000 (-0700) Subject: Parentheses suggested X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=533e98506cb74eb062b82c4fdc67bac87c6d5136;p=neomutt Parentheses suggested --- diff --git a/imap/command.c b/imap/command.c index 6d4eda039..18e1a57c3 100644 --- a/imap/command.c +++ b/imap/command.c @@ -250,7 +250,7 @@ int imap_exec (IMAP_DATA* idata, const char* cmdstr, int flags) if (rc != IMAP_CMD_OK) { - if (flags & IMAP_CMD_FAIL_OK && idata->status != IMAP_FATAL) + if ((flags & IMAP_CMD_FAIL_OK) && idata->status != IMAP_FATAL) return -2; dprint (1, (debugfile, "imap_exec: command failed: %s\n", idata->buf)); @@ -295,7 +295,7 @@ void imap_cmd_finish (IMAP_DATA* idata) dprint (2, (debugfile, "imap_cmd_finish: Expunging mailbox\n")); imap_expunge_mailbox (idata); /* Detect whether we've gotten unexpected EXPUNGE messages */ - if (idata->reopen & IMAP_EXPUNGE_PENDING && + if ((idata->reopen & IMAP_EXPUNGE_PENDING) && !(idata->reopen & IMAP_EXPUNGE_EXPECTED)) idata->check_status = IMAP_EXPUNGE_PENDING; idata->reopen &= ~(IMAP_EXPUNGE_PENDING | IMAP_NEWMAIL_PENDING |