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

cgi: make sure compiler cant see uninitialized use

This commit is contained in:
Andy Green 2017-10-26 18:56:12 +08:00
parent c303a0d0e3
commit fbd524e34a

View file

@ -116,7 +116,7 @@ lws_cgi(struct lws *wsi, const char * const *exec_array, int script_uri_path_len
char *env_array[30], cgi_path[400], e[1024], *p = e,
*end = p + sizeof(e) - 1, tok[256], *t;
struct lws_cgi *cgi;
int n, m, i, uritok = -1;
int n, m = 0, i, uritok = -1;
/*
* give the master wsi a cgi struct