فهرست منبع

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