From 46781347cd06f6b837944c92da630f4d45232c34 Mon Sep 17 00:00:00 2001 From: smf- Date: Tue, 17 Sep 2013 17:55:42 +0000 Subject: [PATCH] fix for building with Visual Studio 2012 (nw) --- src/lib/web/mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/web/mongoose.c b/src/lib/web/mongoose.c index 1718b2c6faa..e037f37d4da 100644 --- a/src/lib/web/mongoose.c +++ b/src/lib/web/mongoose.c @@ -4007,7 +4007,7 @@ static void read_websocket(struct mg_connection *conn) { // so the queue begins after it. unsigned char *buf = (unsigned char *) conn->buf + conn->request_len; int bits, n, stop = 0; - size_t i, len, mask_len, data_len, header_len, body_len; + size_t i, len, mask_len = 0, data_len = 0, header_len, body_len; // data points to the place where the message is stored when passed to the // websocket_data callback. This is either mem on the stack, // or a dynamically allocated buffer if it is too large.