[master] 1cd5efac3 vcc_parse: Point to the right symbol in error message
Walid Boudebouda
walid.boudebouda at gmail.com
Wed Dec 3 09:58:05 UTC 2025
commit 1cd5efac35e27076cd66378fc436208bd4bdeb47
Author: Walid Boudebouda <walid.boudebouda at gmail.com>
Date: Wed Dec 3 10:50:07 2025 +0100
vcc_parse: Point to the right symbol in error message
VCC_SymbolGet moves the cursor to the next symbol.
diff --git a/lib/libvcc/vcc_parse.c b/lib/libvcc/vcc_parse.c
index f579e2d0b..e00b133e0 100644
--- a/lib/libvcc/vcc_parse.c
+++ b/lib/libvcc/vcc_parse.c
@@ -188,13 +188,13 @@ vcc_Compound(struct vcc *tl)
SYMTAB_PARTIAL, XREF_NONE);
if (sym == NULL) {
VSB_printf(tl->sb, "Symbol not found.\n");
- vcc_ErrWhere(tl, tl->t);
+ vcc_ErrWhere(tl, t);
return;
}
if (sym->action == NULL) {
VSB_printf(tl->sb,
"Symbol cannot be used here.\n");
- vcc_ErrWhere(tl, tl->t);
+ vcc_ErrWhere(tl, t);
return;
}
if (sym->action_mask != 0)
More information about the varnish-commit
mailing list