[master] ab14ed4 Help flexelint find the path of this VUT_Arg call

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Sep 11 09:41:06 UTC 2017


commit ab14ed43af718a0e2fcdd61be40abe1f3fb17c44
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