Explorar o código

Merge pull request #777 from macedot/master

Fix for double const on pointer
bel2125 %!s(int64=5) %!d(string=hai) anos
pai
achega
15f9c33409
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -14734,7 +14734,7 @@ set_ports_option(struct mg_context *phys_ctx)
 			continue;
 		}
 
-		const char* const p = phys_ctx->dd.config[MAX_CONNECTIONS];
+		const char* p = phys_ctx->dd.config[MAX_CONNECTIONS];
 		const long opt_max_connections = strtol(p, NULL, 10);
 		if(opt_max_connections > INT_MAX || opt_max_connections < 1) {
 			mg_cry_ctx_internal(phys_ctx,