]> granicus.if.org Git - curl/commitdiff
imap: merged two case-branches performing the same action
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 07:52:01 +0000 (09:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:07:25 +0000 (08:07 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374

lib/imap.c

index ff9b629470119adbb369a41fac715ccc25a31dd2..66172bddcc53f1d487f0991e3612e46f6baec70b 100644 (file)
@@ -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: