[master] d0acf1191 Add missing assert to calm down flexelint.

Poul-Henning Kamp phk at FreeBSD.org
Fri Aug 5 13:33:06 UTC 2022


commit d0acf119167149e1296d5e297449d010600e51c2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Aug 5 13:32:19 2022 +0000

    Add missing assert to calm down flexelint.

diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index b68c18638..ed15e07f9 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -189,6 +189,7 @@ HTTP_Init(void)
 #include "tbl/http_headers.h"
 
 	vsb = VSB_new_auto();
+	AN(vsb);
 	VSB_printf(vsb, "1.1 %s (Varnish/" PACKAGE_BRANCH ")",
 	    heritage.identity);
 	AZ(VSB_finish(vsb));


More information about the varnish-commit mailing list