[4.1] 65f9cb7 dont use VSL_Error as a format string

Nils Goroll nils.goroll at uplex.de
Fri Sep 4 15:54:51 CEST 2015


commit 65f9cb7ae68a8641a0fd5a804354df11c9af9ef1
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Jul 14 17:34:38 2015 +0200

    dont use VSL_Error as a format string

diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index 1e787fc..bd567ee 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -592,7 +592,7 @@ cmd_logexp(CMD_ARGS)
 					av++;
 					continue;
 				}
-				vtc_log(le->vl, 0, VSL_Error(le->vsl));
+				vtc_log(le->vl, 0, "%s", VSL_Error(le->vsl));
 				return;
 			}
 			vtc_log(le->vl, 0, "Unknown logexp argument: %s", *av);



More information about the varnish-commit mailing list