[master] 16b3890 Fix "Wrong enum value" VCC Error
Nils Goroll
nils.goroll at uplex.de
Thu Sep 22 16:25:05 CEST 2016
commit 16b389072469dc68eeed1d61df2ab44ce4b4eea8
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Sep 22 16:23:23 2016 +0200
Fix "Wrong enum value" VCC Error
Since a78efad8002895e6097aeb6b1daeac0f6108b9a9 the argument name and default
value are separated from the argument spec by a \1, so we need to stop
there.
diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
index b1ed848..250a12e 100644
--- a/lib/libvcc/vcc_expr.c
+++ b/lib/libvcc/vcc_expr.c
@@ -555,7 +555,7 @@ vcc_do_arg(struct vcc *tl, struct func_arg *fa)
do {
VSB_printf(tl->sb, "\t%s\n", r);
r += strlen(r) + 1;
- } while (*r != '\0');
+ } while (*r != '\0' && *r != '\1');
vcc_ErrWhere(tl, tl->t);
return;
}
More information about the varnish-commit
mailing list