[6.0] a23939499 VSC_Arg succeeds with non-zero

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:25 UTC 2018


commit a239394990c7b72498508f9c0359f716d7834585
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Sep 28 15:37:40 2018 +0200

    VSC_Arg succeeds with non-zero
    
    Fixes #2787

diff --git a/bin/varnishstat/varnishstat.c b/bin/varnishstat/varnishstat.c
index 74a8f5adf..be9e64c79 100644
--- a/bin/varnishstat/varnishstat.c
+++ b/bin/varnishstat/varnishstat.c
@@ -319,10 +319,10 @@ main(int argc, char * const *argv)
 
 	if (curses) {
 		if (has_f) {
-			AZ(VSC_Arg(vsc, 'f', "MGT.uptime"));
-			AZ(VSC_Arg(vsc, 'f', "MAIN.uptime"));
-			AZ(VSC_Arg(vsc, 'f', "MAIN.cache_hit"));
-			AZ(VSC_Arg(vsc, 'f', "MAIN.cache_miss"));
+			AN(VSC_Arg(vsc, 'f', "MGT.uptime"));
+			AN(VSC_Arg(vsc, 'f', "MAIN.uptime"));
+			AN(VSC_Arg(vsc, 'f', "MAIN.cache_hit"));
+			AN(VSC_Arg(vsc, 'f', "MAIN.cache_miss"));
 		}
 		do_curses(vd, vsc, 1.0);
 	}


More information about the varnish-commit mailing list