r5450 - trunk/varnish-cache/bin/varnishtest

phk at varnish-cache.org phk at varnish-cache.org
Thu Oct 21 21:35:25 CEST 2010


Author: phk
Date: 2010-10-21 21:35:25 +0200 (Thu, 21 Oct 2010)
New Revision: 5450

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_log.c
Log:
An assert a day keeps the bugs away



Modified: trunk/varnish-cache/bin/varnishtest/vtc_log.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_log.c	2010-10-21 19:29:59 UTC (rev 5449)
+++ trunk/varnish-cache/bin/varnishtest/vtc_log.c	2010-10-21 19:35:25 UTC (rev 5450)
@@ -65,6 +65,7 @@
 vtc_loginit()
 {
 
+	AZ(vtclog_full);
 	vtclog_full = vsb_newauto();
 	AN(vtclog_full);
 	AZ(pthread_mutex_init(&vtclog_mtx, NULL));
@@ -74,6 +75,7 @@
 vtc_logreset()
 {
 
+	AN(vtclog_full);
 	vsb_clear(vtclog_full);
 }
 




More information about the varnish-commit mailing list