[libgdata/libgdata-0-14] tests: Tidy up cases in a switch statement



commit eae25a4c4d3f4924302ed0fb5eb8bd36354bc7ab
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri May 16 09:56:12 2014 +0100

    tests: Tidy up cases in a switch statement
    
    Coverity issue: #59767

 gdata/tests/streams.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdata/tests/streams.c b/gdata/tests/streams.c
index 7b4fe5f..92554d4 100644
--- a/gdata/tests/streams.c
+++ b/gdata/tests/streams.c
@@ -725,8 +725,6 @@ test_upload_stream_resumable_server_handler_cb (SoupServer *server, SoupMessage
 
                /* Send a response. */
                switch (test_params->error_type) {
-                       case ERROR_ON_INITIAL_REQUEST:
-                               g_assert_not_reached ();
                        case ERROR_ON_SUBSEQUENT_REQUEST:
                        case ERROR_ON_FINAL_REQUEST:
                                /* Skip the error if this isn't the final request. */
@@ -745,6 +743,7 @@ test_upload_stream_resumable_server_handler_cb (SoupServer *server, SoupMessage
                                }
 
                                break;
+                       case ERROR_ON_INITIAL_REQUEST:
                        default:
                                g_assert_not_reached ();
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]