diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 15:45:22 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 15:45:22 +0200 |
commit | 63e8608d87b552c690c76da0be593067840785a0 (patch) | |
tree | 25b5d5f72c4044c3b1a7befeb707033431d15270 /src/u_vars.c | |
parent | Change (diff) | |
download | 42-minishell-63e8608d87b552c690c76da0be593067840785a0.tar.gz 42-minishell-63e8608d87b552c690c76da0be593067840785a0.tar.bz2 42-minishell-63e8608d87b552c690c76da0be593067840785a0.tar.xz 42-minishell-63e8608d87b552c690c76da0be593067840785a0.tar.zst 42-minishell-63e8608d87b552c690c76da0be593067840785a0.zip |
$? fix
Diffstat (limited to 'src/u_vars.c')
-rw-r--r-- | src/u_vars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/u_vars.c b/src/u_vars.c index 4001020..2a78f3d 100644 --- a/src/u_vars.c +++ b/src/u_vars.c @@ -92,7 +92,7 @@ static char if (ft_strncmp(varname, FT_RET_VAR, 3) == 0) { - if (!(varval = ft_uitoa(msh->ret))) + if ((varval = ft_uitoa(msh->ret)) == NULL) { lcom_clear(&msh->curr); s_destroy(msh); @@ -102,7 +102,7 @@ static char } else if (ft_strncmp(varname, FT_ZER_VAR, 3) == 0) { - if (!(varval = ft_strdup(msh->shname))) + if ((varval = ft_strdup(msh->shname)) == NULL) { lcom_clear(&msh->curr); s_destroy(msh); |