From fbd524e34adcecf2d9d02927a9c0e1794782debd Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 26 Oct 2017 18:56:12 +0800 Subject: [PATCH] cgi: make sure compiler cant see uninitialized use --- lib/server/cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/cgi.c b/lib/server/cgi.c index 1b9dfe45a..37ddbb191 100644 --- a/lib/server/cgi.c +++ b/lib/server/cgi.c @@ -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