From 1112d40d01fd8cee1e351d304e18f302cecd963e Mon Sep 17 00:00:00 2001
From: Adam Duskett <Aduskett@gmail.com>
Date: Fri, 22 Feb 2019 15:47:41 -0500
Subject: [PATCH] libuv.c: set m to 0 by default MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Setting m to 0 by default will prevent "error: ‘m’ may be used uninitialized in this function"
while compiling with the option -DLWS_WITH_LIBUV=ON.
---
 lib/event-libs/libuv/libuv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/event-libs/libuv/libuv.c b/lib/event-libs/libuv/libuv.c
index 39363f14..c38eb2ac 100644
--- a/lib/event-libs/libuv/libuv.c
+++ b/lib/event-libs/libuv/libuv.c
@@ -503,7 +503,7 @@ static int
 elops_destroy_context1_uv(struct lws_context *context)
 {
 	struct lws_context_per_thread *pt;
-	int n, m;
+	int n, m = 0;
 
 	for (n = 0; n < context->count_threads; n++) {
 		int budget = 10000;
-- 
GitLab