r168 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Jun 13 09:25:20 CEST 2006


Author: phk
Date: 2006-06-13 09:25:20 +0200 (Tue, 13 Jun 2006)
New Revision: 168

Modified:
   trunk/varnish-cache/bin/varnishd/cache_main.c
Log:
Allow for NULL init methods for hash and stevedore


Modified: trunk/varnish-cache/bin/varnishd/cache_main.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_main.c	2006-05-01 12:59:34 UTC (rev 167)
+++ trunk/varnish-cache/bin/varnishd/cache_main.c	2006-06-13 07:25:20 UTC (rev 168)
@@ -122,10 +122,12 @@
 	assert(eb != NULL);
 
 	hash = &hsl_slinger;
-	hash->init();
+	if (hash->init != NULL)
+		hash->init();
 
 	stevedore = &sma_stevedore;
-	stevedore->init();
+	if (stevedore->init != NULL)
+		stevedore->init();
 
 	CVCL_Load(heritage.vcl_file, "boot");
 	cli = cli_setup(eb, heritage.fds[2], heritage.fds[1], 0, cli_proto);




More information about the varnish-commit mailing list