Browse code

core: init timeval structs to silent analyzer

Daniel-Constantin Mierla authored on 03/07/2020 06:30:46
Showing 1 changed files
... ...
@@ -227,7 +227,7 @@ int receive_msg(char *buf, unsigned int len, receive_info_t *rcv_info)
227 227
 	struct run_act_ctx ctx;
228 228
 	struct run_act_ctx *bctx = NULL;
229 229
 	int ret = -1;
230
-	struct timeval tvb, tve;
230
+	struct timeval tvb = {0}, tve = {0};
231 231
 	unsigned int diff = 0;
232 232
 	str inb = STR_NULL;
233 233
 	sr_net_info_t netinfo = {0};