commit b09dc373013822a7446515c41bd550cb5336e8ee
parent ebe0f498d85882dca93154ef9e3fc8b6c4b7127a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 13 Jan 2022 21:04:03 +0300
test_upgrade{,_large}: fixed use of uninitialized value
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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
@@ -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. */