gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 01/02: test_upgrade{,_large}: fixed use of uninitialized


From: gnunet
Subject: [libmicrohttpd] 01/02: test_upgrade{,_large}: fixed use of uninitialized value
Date: Thu, 13 Jan 2022 20:16:41 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit b09dc373013822a7446515c41bd550cb5336e8ee
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Jan 13 21:04:03 2022 +0300

    test_upgrade{,_large}: fixed use of uninitialized value
---
 src/microhttpd/test_upgrade.c       | 2 +-
 src/microhttpd/test_upgrade_large.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 950a5fb4..06e66a3c 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -526,7 +526,7 @@ notify_connection_cb (void *cls,
                       void **socket_context,
                       enum MHD_ConnectionNotificationCode toe)
 {
-  static int started;
+  static int started = MHD_NO;
 
   (void) cls;
   (void) connection;  /* Unused. Silent compiler warning. */
diff --git a/src/microhttpd/test_upgrade_large.c 
b/src/microhttpd/test_upgrade_large.c
index c321080e..817408fb 100644
--- a/src/microhttpd/test_upgrade_large.c
+++ b/src/microhttpd/test_upgrade_large.c
@@ -700,7 +700,7 @@ notify_connection_cb (void *cls,
                       void **socket_context,
                       enum MHD_ConnectionNotificationCode toe)
 {
-  static int started;
+  static int started = MHD_NO;
 
   (void) cls;
   (void) connection;  /* Unused. Silent compiler warning. */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]