소스 검색

Add cast for malloc (fix #1124)

bel2125 2 년 전
부모
커밋
c2f77f268a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();