[master] 9ec96da Use the proper symbol name when evaluating vcl 'new' invocations.

Dag Haavi Finstad daghf at varnish-software.com
Tue Oct 21 12:49:24 CEST 2014


commit 9ec96da73047622a40c476073d148876c95beeb8
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Tue Oct 21 12:49:07 2014 +0200

    Use the proper symbol name when evaluating vcl 'new' invocations.

diff --git a/lib/libvcc/vcc_action.c b/lib/libvcc/vcc_action.c
index 1b0c4b2..c4f984d 100644
--- a/lib/libvcc/vcc_action.c
+++ b/lib/libvcc/vcc_action.c
@@ -219,7 +219,7 @@ parse_new(struct vcc *tl)
 	vcc_NextToken(tl);
 
 	bprintf(buf1, ", &vo_%s, \"%s\"", sy1->name, sy1->name);
-	vcc_Eval_Func(tl, s_init, buf1, "ASDF", s_init + strlen(s_init) + 1);
+	vcc_Eval_Func(tl, s_init, buf1, sy2->name, s_init + strlen(s_init) + 1);
 	ifp = New_IniFin(tl);
 	VSB_printf(ifp->fin, "\t%s(&vo_%s);", s_fini, sy1->name);
 	ExpectErr(tl, ';');



More information about the varnish-commit mailing list