소스 검색

core: init timeval structs to silent analyzer

Daniel-Constantin Mierla 5 년 전
부모
커밋
d0d2c8fd6a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/receive.c

+ 1 - 1
src/core/receive.c

@@ -227,7 +227,7 @@ int receive_msg(char *buf, unsigned int len, receive_info_t *rcv_info)
 	struct run_act_ctx ctx;
 	struct run_act_ctx *bctx = NULL;
 	int ret = -1;
-	struct timeval tvb, tve;
+	struct timeval tvb = {0}, tve = {0};
 	unsigned int diff = 0;
 	str inb = STR_NULL;
 	sr_net_info_t netinfo = {0};