vcc: Add missing ERRCHK to vcc_expr5()

VCC_SymbolGet() could fail, e,g, if the token is reserved

Ref cf396384
parent 9b1f1d17
......@@ -745,6 +745,7 @@ vcc_expr5(struct vcc *tl, struct expr **e, vcc_type_t fmt)
if (sym == NULL && fmt->global_pfx != NULL && t1->tok != '.') {
sym = VCC_SymbolGet(tl, SYM_MAIN, SYM_NONE,
SYMTAB_CREATE, XREF_REF);
ERRCHK(tl);
AN(sym);
VCC_GlobalSymbol(sym, fmt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment