[master] d9195348b Don't replicate existing default code.

Poul-Henning Kamp phk at FreeBSD.org
Fri Nov 8 08:27:08 UTC 2019


commit d9195348b627a8d5541ae264c18997a251a5d1dc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Nov 8 08:22:25 2019 +0000

    Don't replicate existing default code.

diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index 8131260c9..b0ee19899 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -920,8 +920,6 @@ static struct cli_proto vcl_cmds[] = {
 void
 VCL_Init(void)
 {
-	unsigned sz;
-	char *vslbuf;
 
 	assert(cache_param->workspace_client > 0);
 	WS_Init(&ws_cli, "cli", malloc(cache_param->workspace_client),
@@ -929,8 +927,5 @@ VCL_Init(void)
 	ws_snapshot_cli = WS_Snapshot(&ws_cli);
 	CLI_AddFuncs(vcl_cmds);
 	Lck_New(&vcl_mtx, lck_vcl);
-	sz = cache_param->vsl_buffer;
-	vslbuf = malloc(sz);
-	AN(vslbuf);
-	VSL_Setup(&vsl_cli, vslbuf, sz);
+	VSL_Setup(&vsl_cli, NULL, 0);
 }


More information about the varnish-commit mailing list