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

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.
This commit is contained in:
Orgad Shaneh 2019-05-30 06:06:41 +08:00 committed by Andy Green
parent 4a8123fc34
commit 93c35b9712

View file

@ -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) {