From 93c35b97123cfcbce2f104c82dbee2d8cf7bb2e4 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 30 May 2019 06:06:41 +0800 Subject: [PATCH] http: Initialize local variable GCC 4.1 warns about potential access to uninitialized variable, although this can't really happen. Silence it by initializing the variable. --- lib/roles/http/server/lejp-conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/http/server/lejp-conf.c b/lib/roles/http/server/lejp-conf.c index ef07ead16..e8dfffdfe 100644 --- a/lib/roles/http/server/lejp-conf.c +++ b/lib/roles/http/server/lejp-conf.c @@ -877,7 +877,7 @@ lwsws_get_config(void *user, const char *f, const char * const *paths, { unsigned char buf[128]; struct lejp_ctx ctx; - int n, m, fd; + int n, m = 0, fd; fd = lws_open(f, O_RDONLY); if (fd < 0) {