fix(execution): ast_void does not affect return value => if statements now work
This commit is contained in:
parent
6be3dde607
commit
da948f58fe
1 changed files with 3 additions and 2 deletions
|
|
@ -245,7 +245,8 @@ int execution(struct ast *ast, struct hash_map *vars)
|
||||||
while (cur)
|
while (cur)
|
||||||
{
|
{
|
||||||
struct ast *child = (struct ast *)cur->data;
|
struct ast *child = (struct ast *)cur->data;
|
||||||
ret = execution(child, vars);
|
if (!ast_is_void(child))
|
||||||
|
ret = execution(child, vars);
|
||||||
cur = cur->next;
|
cur = cur->next;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
@ -358,4 +359,4 @@ int execution(struct ast *ast, struct hash_map *vars)
|
||||||
return 127;
|
return 127;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue