fix: memory issues, parser errors and get_ast_if returning always NULL
This commit is contained in:
parent
5740195cb3
commit
52d35cf355
4 changed files with 5 additions and 2 deletions
|
|
@ -201,6 +201,8 @@ int exec_ast_command(struct ast_command *command, struct hash_map *vars)
|
|||
|
||||
int exec_ast_if(struct ast_if *if_node, struct hash_map *vars)
|
||||
{
|
||||
if (if_node == NULL)
|
||||
return 2;
|
||||
int cond = execution(if_node->condition, vars);
|
||||
if (cond == 0)
|
||||
return execution(if_node->then_clause, vars);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue