[4.1] e5ba8e7 Initialize a variable to quieten down compilers and FlexeLint

Lasse Karstensen lkarsten at varnish-software.com
Thu Feb 11 17:14:33 CET 2016


commit e5ba8e767c2a787e97cb7ee7f8c74a86d1110a73
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Feb 8 20:45:18 2016 +0000

    Initialize a variable to quieten down compilers and FlexeLint

diff --git a/bin/varnishd/mgt/mgt_child.c b/bin/varnishd/mgt/mgt_child.c
index f7b3732..e602607 100644
--- a/bin/varnishd/mgt/mgt_child.c
+++ b/bin/varnishd/mgt/mgt_child.c
@@ -453,7 +453,7 @@ static void
 mgt_reap_child(void)
 {
 	int i;
-	int status;
+	int status = 0xffff;
 	struct vsb *vsb;
 	pid_t r = 0;
 



More information about the varnish-commit mailing list