fix: exit code

This commit is contained in:
Camille Chauvet
2023-03-22 16:07:27 +01:00
parent b3d060874d
commit 22dc9776d6
4 changed files with 4 additions and 2 deletions

2
env/env_fill.c vendored
View File

@ -22,7 +22,7 @@ static char *ft_getkey(const char *str)
key = ft_strdup("$");
else if (ft_strncmp(str, "$?", 2) == 0)
key = ft_strdup("?");
if (str[1] == '\0')
else if (str[1] == '\0')
key = ft_strdup("");
else
{