From 76763139463e8647d142108546da0b5a95e910fd Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 15 Sep 2020 11:52:40 +0300 Subject: [PATCH] core-net: initialize some variables Amends 286cf4357a2fe2540cf38837c59f946d2b0d7263. --- lib/core-net/sorted-usec-list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core-net/sorted-usec-list.c b/lib/core-net/sorted-usec-list.c index e427c0289..080bd3518 100644 --- a/lib/core-net/sorted-usec-list.c +++ b/lib/core-net/sorted-usec-list.c @@ -120,7 +120,7 @@ __lws_sul_service_ripe(lws_dll2_owner_t *own, int own_len, lws_usec_t usnow) do { lws_sorted_usec_list_t *hit = NULL; - lws_usec_t lowest; + lws_usec_t lowest = 0; int n = 0; for (n = 0; n < own_len; n++) { @@ -233,7 +233,7 @@ lws_sul_earliest_wakeable_event(struct lws_context *ctx, lws_usec_t *pearliest) { struct lws_context_per_thread *pt; int n = 0, hit = -1; - lws_usec_t lowest; + lws_usec_t lowest = 0; for (n = 0; n < ctx->count_threads; n++) { pt = &ctx->pt[n];