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:
parent
4a8123fc34
commit
93c35b9712
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue