Selaa lähdekoodia

Merge pull request #777 from macedot/master

Fix for double const on pointer
bel2125 5 vuotta sitten
vanhempi
commit
15f9c33409
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,