In message <[email protected]>, Mart
in Blix Grydeland writes:


Also here: Please add a ticket + vtc test case to prevent regression.

>Avoids vcc errors from constructs like "std.log("Test: " + 1);"
>---
> lib/libvcl/vcc_expr.c |    4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
>diff --git a/lib/libvcl/vcc_expr.c b/lib/libvcl/vcc_expr.c
>index 30e63d9..19a455c 100644
>--- a/lib/libvcl/vcc_expr.c
>+++ b/lib/libvcl/vcc_expr.c
>@@ -434,8 +434,10 @@ vcc_expr_tostring(struct expr **e, enum var_type fmt)
>       case TIME:      p = "VRT_time_string(sp, \v1)"; break;
>       default:        break;
>       }
>-      if (p != NULL)
>+      if (p != NULL) {
>               *e = vcc_expr_edit(fmt, p, *e, NULL);
>+              (*e)->constant = 0;
>+      }
> }
> 
> /*--------------------------------------------------------------------
>-- 
>1.7.4.1
>
>
>_______________________________________________
>varnish-dev mailing list
>[email protected]
>https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to