瀏覽代碼

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};