Skip to content

Commit

Permalink
FIX: segv in for expand
Browse files Browse the repository at this point in the history
  • Loading branch information
cloe.lacombe committed Dec 7, 2019
1 parent b8f0dda commit 1f5cbc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/ast/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,10 @@ static struct command_container *dup_cmd(struct command_container *cmd)

struct array_list *update_for_values(struct array_list *for_values)
{
if (!for_values)
return NULL;


struct array_list *new = array_list_init();

for (size_t i = 0; i < for_values->nb_element; i++)
Expand Down

0 comments on commit 1f5cbc1

Please sign in to comment.