[master] 205ce3f Assign q, otherwise the whole check is useless

Guillaume Quintard guillaume at varnish-software.com
Thu Sep 8 14:59:12 CEST 2016


commit 205ce3f5d90fd809d4c9073fa0e1c72704dd9bee
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 3ebc651..461ac56 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -327,6 +327,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\tcase %u :\n", p->n);
 			Fc(tl, 0, "\t%s\n", VSB_data(p->fin));



More information about the varnish-commit mailing list