[master] 9bb68d852 remove superfluous assert

Nils Goroll nils.goroll at uplex.de
Mon Apr 15 14:11:07 UTC 2019


commit 9bb68d852f202e28bea37ff9f10d61a082677600
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Apr 15 15:48:14 2019 +0200

    remove superfluous assert
    
    We handle the error case just above

diff --git a/bin/varnishd/cache/cache_range.c b/bin/varnishd/cache/cache_range.c
index 156e50e6f..ab96954fd 100644
--- a/bin/varnishd/cache/cache_range.c
+++ b/bin/varnishd/cache/cache_range.c
@@ -171,7 +171,6 @@ vrg_dorange(struct req *req, const char *r, void **priv)
 	if (vrg_priv == NULL)
 		return ("WS too small");
 
-	XXXAN(vrg_priv);
 	INIT_OBJ(vrg_priv, VRG_PRIV_MAGIC);
 	vrg_priv->range_off = 0;
 	vrg_priv->range_low = low;


More information about the varnish-commit mailing list