summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:52:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:25 +0200
commitd0390a538aa0ee220e865580f5cede7315c441fd (patch)
tree9cf8e3c5738738282b3d5cea4efa7cc0023c6819
parent07c1af9226689a10721e457115f7ef5a52c352eb (diff)
downloadcurl-d0390a538aa0ee220e865580f5cede7315c441fd.tar.gz
imap: merged two case-branches performing the same action
Fixes warning detected by PVS-Studio Fixes #4374
-rw-r--r--lib/imap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/imap.c b/lib/imap.c
index ff9b62947..66172bddc 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1306,6 +1306,7 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
break;
case IMAP_LIST:
+ case IMAP_SEARCH:
result = imap_state_listsearch_resp(conn, imapcode, imapc->state);
break;
@@ -1329,10 +1330,6 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
result = imap_state_append_final_resp(conn, imapcode, imapc->state);
break;
- case IMAP_SEARCH:
- result = imap_state_listsearch_resp(conn, imapcode, imapc->state);
- break;
-
case IMAP_LOGOUT:
/* fallthrough, just stop! */
default: