Commit 9dde225b authored by Sergey Lyubka's avatar Sergey Lyubka

Squashed C++ warning in read_from_cgi()

parent 3a0a22f4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment