[master] 218f3aa60 vsmw: remove spurious assert after REPLACE()

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Jun 3 16:05:06 UTC 2024


commit 218f3aa606d206913463958b0a173dc924f351ed
Author: Stephane Cance <stephane.cance at varnish-software.com>
Date:   Mon Jun 3 17:43:40 2024 +0200

    vsmw: remove spurious assert after REPLACE()

diff --git a/bin/varnishd/common/common_vsmw.c b/bin/varnishd/common/common_vsmw.c
index 5ca509e34..1e0710996 100644
--- a/bin/varnishd/common/common_vsmw.c
+++ b/bin/varnishd/common/common_vsmw.c
@@ -405,7 +405,6 @@ VSMW_Allocv(struct vsmw *vsmw, struct vsmw_cluster *vc,
 	assert(fmt[0] == '\0' || l < VSB_len(vsmw->vsb));
 
 	REPLACE(seg->id, VSB_data(vsmw->vsb));
-	AN(seg->id);
 
 	if (vc == NULL)
 		vc = vsmw_newcluster(vsmw, seg->len, category);


More information about the varnish-commit mailing list