[libsoup/wip/meson] Fix possibly uninitialized value in ssl-test



commit f6cf2b19323b2b6afac90c23c3a69aa3ab5dbdb0
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Nov 14 15:11:57 2017 +0100

    Fix possibly uninitialized value in ssl-test
    
    ssl-test.c: In function ‘main’:
    ssl-test.c:465:3: warning: ‘server’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       soup_test_server_quit_unref (server);

 tests/ssl-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index 223647e..735ba41 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -431,7 +431,7 @@ server_handler (SoupServer        *server,
 int
 main (int argc, char **argv)
 {
-       SoupServer *server;
+       SoupServer *server = NULL;
        int i, ret;
        GError *error = NULL;
 


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