]> err.no Git - varnish/commitdiff
Allow for NULL init methods for hash and stevedore
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 13 Jun 2006 07:25:20 +0000 (07:25 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 13 Jun 2006 07:25:20 +0000 (07:25 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@168 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_main.c

index c5e3e56e5608a69e2b24bb87dfc97a2f6933d989..1c3c232f8cfb1e7c4bbe2c3e32da621aebea8953 100644 (file)
@@ -122,10 +122,12 @@ child_main(void)
        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);