fix: fix toke->value assign on name-not-found error
This commit is contained in:
@@ -1097,7 +1097,7 @@ fzl_walk_res_t walk(fzl_walker_t *walker, fzl_node_t *node)
|
||||
|
||||
if (!found)
|
||||
{
|
||||
fzl_token_t *tok = node->binary_op.left->token->value;
|
||||
fzl_token_t *tok = node->binary_op.left->token;
|
||||
snprintf(wlast_err, sizeof(wlast_err),
|
||||
"'%s': name '%s' is not exists at %ld:%ld", tok->filename,
|
||||
(char *)tok->value, tok->ln, tok->cn);
|
||||
|
||||
Reference in New Issue
Block a user