[libgdata] tests: Tidy up cases in a switch statement



commit 646baf7435fddd7b28a0fe8ab62e79f627f9d3e5
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]