Browse Source

Fix compile error of last commit

bel2125 7 years ago
parent
commit
2c06ce57b5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/civetweb.c

+ 1 - 2
src/civetweb.c

@@ -11446,6 +11446,7 @@ read_websocket(struct mg_connection *conn,
 	 * begins after it. */
 	unsigned char *buf = (unsigned char *)conn->buf + conn->request_len;
 	int n, error, exit_by_callback;
+	int ret;
 
 	/* body_len is the length of the entire queue in bytes
 	 * len is the length of the current message
@@ -11678,8 +11679,6 @@ read_websocket(struct mg_connection *conn,
 			} else {
 				if (!conn->phys_ctx->stop_flag && !conn->must_close) {
 					if (enable_ping_pong) {
-						int ret;
-
 						/* Send Websocket PING message */
 						DEBUG_TRACE("PING to %s:%u",
 						            conn->request_info.remote_addr,