Explorar o código

Add cast for malloc (fix #1124)

bel2125 %!s(int64=2) %!d(string=hai) anos
pai
achega
c2f77f268a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -22352,7 +22352,7 @@ mg_init_library(unsigned features)
 				len += 2;
 			}
 		}
-		all_methods = mg_malloc(len);
+		all_methods = (char *)mg_malloc(len);
 		if (!all_methods) {
 			/* Must never happen */
 			mg_global_unlock();