Kaynağa Gözat

Moving the declaration of newctx inside the ifdef USE_WEBSOCKET block

Fernando García Aranda 10 yıl önce
ebeveyn
işleme
8677146118
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -6550,9 +6550,9 @@ struct mg_connection *mg_connect_websocket_client(const char *host, int port, in
                                                void * user_data)
                                                void * user_data)
 {
 {
     struct mg_connection* conn = NULL;
     struct mg_connection* conn = NULL;
-    struct mg_context * newctx = NULL;
 
 
 #if defined(USE_WEBSOCKET)
 #if defined(USE_WEBSOCKET)
+    struct mg_context * newctx = NULL;
     static const char *magic = "x3JJHMbDL1EzLkh9GBhXDw==";
     static const char *magic = "x3JJHMbDL1EzLkh9GBhXDw==";
     static const char *handshake_req;
     static const char *handshake_req;