From d0390a538aa0ee220e865580f5cede7315c441fd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Sep 2019 09:52:01 +0200 Subject: [PATCH] imap: merged two case-branches performing the same action Fixes warning detected by PVS-Studio Fixes #4374 --- lib/imap.c | 5 +---- 1 file changed, 1 insertion(+), 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: