aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 6bd8c429c..3a9ee45a9 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -335,12 +335,10 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
size_t wordlen;
/* Do we have a tagged command response? */
- if(len >= id_len + 3) {
- if(!memcmp(id, line, id_len) && line[id_len] == ' ') {
- *resp = line[id_len + 1]; /* O, N or B */
+ if(len >= id_len + 3 && !memcmp(id, line, id_len) && line[id_len] == ' ') {
+ *resp = line[id_len + 1]; /* O, N or B */
- return TRUE;
- }
+ return TRUE;
}
/* Do we have a continuation response? */