[5.2] 01c69ea Help flexelint find the path of this VUT_Arg call

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 15 11:17:16 UTC 2017


commit 01c69ea6cf3faece89318c7b8c4296f2189cbc46
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Apr 25 09:40:48 2017 +0200

    Help flexelint find the path of this VUT_Arg call

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 6dc3aa9..1a51afe 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -586,6 +586,8 @@ main(int argc, char **argv)
 	if (!active_profile->name)
 		VUT_Error(1, "-P: No such profile '%s'", profile);
 
+	assert(active_profile->VSL_arg == 'b' ||
+	    active_profile->VSL_arg == 'c');
 	assert(VUT_Arg(active_profile->VSL_arg, NULL));
 	match_tag = active_profile->tag;
 	fnum = active_profile->field;


More information about the varnish-commit mailing list