From ef25c42e86e88fd11cbb47c16d3094ef186a7f07 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 25 Jul 2023 11:55:01 -0300 Subject: [PATCH] fix unit tests for older compilers --- test/unit_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit_test.c b/test/unit_test.c index 787e6818..9c20fd60 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -1229,10 +1229,10 @@ static void f3(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { static void test_http_client(void) { struct mg_tls_opts opts; - memset(&opts, 0, sizeof(opts)); struct mg_mgr mgr; struct mg_connection *c = NULL; int i, ok = 0; + memset(&opts, 0, sizeof(opts)); mg_mgr_init(&mgr); #if MG_TLS opts.client_ca = mg_str(CA_ISRG_ROOT_X2 CA_ISRG_ROOT_X1);