[master] d73a4e4 Flexelinting: initialize variable flexelint cannot see through.

Poul-Henning Kamp phk at FreeBSD.org
Thu Mar 23 13:58:06 CET 2017


commit d73a4e4a42ad44ce6d79dab5f89d1bc9d5a41f0b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Mar 23 11:21:40 2017 +0000

    Flexelinting: initialize variable flexelint cannot see through.

diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index 8960692..eaf8d02 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -220,7 +220,7 @@ process_start(struct process *p)
 	struct vsb *cl;
 	int out_fd, err_fd;
 	int fds[2];
-	int fdt[2];
+	int fdt[2] = { -1, -1 };
 
 	CHECK_OBJ_NOTNULL(p, PROCESS_MAGIC);
 	if (p->hasthread)



More information about the varnish-commit mailing list