faboussard / 42_minishell

1 stars 0 forks source link

minishell segfault when we push enter with no arg #21

Closed melobern closed 7 months ago

melobern commented 7 months ago

➜ 42_minishell.c git:(exec) ✗ ./minishell

Minishell>$ ls Minishell>$ ls -l Minishell>$ [1] 15821 segmentation fault (core dumped) ./minishell ➜ 42_minishell.c git:(exec) ✗

melobern commented 7 months ago
    if (minishell->user_input[0] == 0)
        continue ;