[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [master] 2ec7eaa63 forgotten assertion
From:       Nils Goroll <nils.goroll () uplex ! de>
Date:       2021-01-31 11:22:07
Message-ID: 20210131112207.819AA10E23D () lists ! varnish-cache ! org
[Download RAW message or body]


commit 2ec7eaa6321f208604f6f1f676f6311b712f8a01
Author: Nils Goroll <nils.goroll@uplex.de>
Date:   Sun Jan 31 12:20:38 2021 +0100

    forgotten assertion

diff --git a/lib/libvcc/vcc_compile.c b/lib/libvcc/vcc_compile.c
index 954316cba..1a2182f41 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -186,6 +186,7 @@ vcc_EmitProc(struct vcc *tl, struct proc *p)
 	Fc(tl, 1, "%s(VRT_CTX)\n{\n", VSB_data(p->cname));
 	if (p->method) {
 		vsbm = VSB_new_auto();
+		AN(vsbm);
 		vcc_vcl_met2c(vsbm, p->method->bitval);
 		AZ(VSB_finish(vsbm));
 		Fc(tl, 1, "  // assert(ctx->method == (%s));\n",
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic