[4.1] a70c5ea Assign q, otherwise the whole check is useless

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Tue Sep 13 13:07:11 CEST 2016


commit a70c5ea3bfcf52858a54777c8b0ce6c737eead26
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Thu Sep 8 14:57:22 2016 +0200

    Assign q, otherwise the whole check is useless
    
    Spotted by: Dridi Boukelmoune

diff --git a/lib/libvcc/vcc_compile.c b/lib/libvcc/vcc_compile.c
index d6bbfcf..144ff1e 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -372,6 +372,7 @@ EmitInitFini(const struct vcc *tl)
 		AZ(VSB_finish(p->fin));
 		if (q)
 			assert(q->n > p->n);
+		q = p;
 		if (VSB_len(p->fin)) {
 			Fc(tl, 0, "\t/* %u */\n", p->n);
 			Fc(tl, 0, "\tif (vgc_inistep >= %u) {\n", p->n);



More information about the varnish-commit mailing list