Przeglądaj źródła

Add cast for malloc (fix #1124)

bel2125 2 lat temu
rodzic
commit
c2f77f268a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

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