[master] 2b9d43c Properly initialize the fantom iterators before using them.
Martin Blix Grydeland
martin at varnish-cache.org
Tue Oct 1 14:48:19 CEST 2013
commit 2b9d43cc84fec99ebf41bf91455dc85664ee34f2
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Oct 1 11:06:04 2013 +0200
Properly initialize the fantom iterators before using them.
Spotted by: Coverity
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index cfffac5..ecd7620 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -860,7 +860,9 @@ do_curses(struct VSM_data *vd, int delay)
long t;
int ch;
double now;
- struct VSM_fantom f_main, f_mgt, f_iter;
+ struct VSM_fantom f_main = VSM_FANTOM_NULL;
+ struct VSM_fantom f_mgt = VSM_FANTOM_NULL;
+ struct VSM_fantom f_iter = VSM_FANTOM_NULL;
(void)delay;
More information about the varnish-commit
mailing list