소스 검색

Fix possibly uninitialized variable 'so.in_use' reported by Coverity.

Kimmo Mustonen 8 년 전
부모
커밋
f0598c8d22
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -14982,6 +14982,7 @@ accept_new_connection(const struct socket *listener, struct mg_context *ctx)
 
 		set_blocking_mode(so.sock, 0);
 
+		so.in_use = 0;
 		produce_socket(ctx, &so);
 	}
 }