Squashed C++ warning in read_from_cgi()

This commit is contained in:
Sergey Lyubka
2013-12-26 11:45:44 +00:00
parent 3a0a22f4cc
commit 9dde225b5e
+2 -1
View File
@@ -3120,7 +3120,8 @@ static void read_from_cgi(struct connection *conn) {
if (conn->num_bytes_sent == 0 && conn->remote_iobuf.len == 0) {
// Parse CGI headers, and modify the reply line if needed
if ((len = get_request_len(buf, n)) > 0) {
char *s = buf, *status = NULL, buf2[sizeof(buf)];
const char *status = NULL;
char *s = buf, buf2[sizeof(buf)];
struct mg_connection c;
int i, k;