[libsoup] cache-test: fix some minor things pointed out by coverity



commit 03fd6fdc23e0652dda8cb11a16d3fe9b41e16ba9
Author: Dan Winship <danw gnome org>
Date:   Wed Sep 11 15:33:04 2013 -0400

    cache-test: fix some minor things pointed out by coverity

 tests/cache-test.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/cache-test.c b/tests/cache-test.c
index a8d01eb..a19e974 100644
--- a/tests/cache-test.c
+++ b/tests/cache-test.c
@@ -164,6 +164,7 @@ do_request (SoupSession        *session,
                soup_message_headers_append (msg->request_headers,
                                             header, value);
        }
+       va_end (ap);
 
        stream = soup_test_request_send (SOUP_REQUEST (req), NULL, 0, &error);
        if (!stream) {
@@ -703,8 +704,7 @@ do_headers_test (SoupURI *base_uri)
        if (!header_value) {
                debug_printf (1, "    Header \"My-Header\" not present!\n");
                errors++;
-       }
-       if (strcmp (header_value, "My header NEW value") != 0) {
+       } else if (strcmp (header_value, "My header NEW value") != 0) {
                debug_printf (1, "    \"My-Header = %s\" and should be \"%s\"\n",
                              header_value,
                              "My header NEW value");


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