cgi: make sure compiler cant see uninitialized use

This commit is contained in:
Andy Green 2017-10-26 18:54:52 +08:00
parent 5a0b5299d2
commit 52d82ad83a

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