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

core-net: initialize some variables

Amends 286cf4357a.
This commit is contained in:
Orgad Shaneh 2020-09-15 11:52:40 +03:00 committed by Andy Green
parent 1a8979b68c
commit 7676313946

View file

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