From 9dde225b5ef1f1a2278f79aed29d641d55600d7f Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Thu, 26 Dec 2013 11:45:44 +0000 Subject: [PATCH] Squashed C++ warning in read_from_cgi() --- mongoose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 04488bbd6..6bd5581f6 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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; -- GitLab