aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-13 21:04:03 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-13 21:04:03 +0300
commitb09dc373013822a7446515c41bd550cb5336e8ee (patch)
treeb98bac36b4820196955fe298789fc6666484f3fc
parentebe0f498d85882dca93154ef9e3fc8b6c4b7127a (diff)
downloadlibmicrohttpd-b09dc373013822a7446515c41bd550cb5336e8ee.tar.gz
libmicrohttpd-b09dc373013822a7446515c41bd550cb5336e8ee.zip
test_upgrade{,_large}: fixed use of uninitialized value
-rw-r--r--src/microhttpd/test_upgrade.c2
-rw-r--r--src/microhttpd/test_upgrade_large.c2
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,
526 void **socket_context, 526 void **socket_context,
527 enum MHD_ConnectionNotificationCode toe) 527 enum MHD_ConnectionNotificationCode toe)
528{ 528{
529 static int started; 529 static int started = MHD_NO;
530 530
531 (void) cls; 531 (void) cls;
532 (void) connection; /* Unused. Silent compiler warning. */ 532 (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,
700 void **socket_context, 700 void **socket_context,
701 enum MHD_ConnectionNotificationCode toe) 701 enum MHD_ConnectionNotificationCode toe)
702{ 702{
703 static int started; 703 static int started = MHD_NO;
704 704
705 (void) cls; 705 (void) cls;
706 (void) connection; /* Unused. Silent compiler warning. */ 706 (void) connection; /* Unused. Silent compiler warning. */