[master] 2ec7eaa63 forgotten assertion

Nils Goroll nils.goroll at uplex.de
Sun Jan 31 11:22:07 UTC 2021


commit 2ec7eaa6321f208604f6f1f676f6311b712f8a01
Author: Nils Goroll <nils.goroll at 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",


More information about the varnish-commit mailing list