1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

libuv.c: set m to 0 by default

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.
This commit is contained in:
Adam Duskett 2019-02-22 15:47:41 -05:00 committed by Andy Green
parent a57d13cb1b
commit e7df97c309

View file

@ -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;