summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 14:51:40 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 14:51:40 +0200
commit78a0df21c2eabb2d652fbbeb198aafdee328248e (patch)
treea34d595ba858c095435661b1a1e7f690a693a57a
parentHuge bug fix (diff)
download42-minishell-78a0df21c2eabb2d652fbbeb198aafdee328248e.tar.gz
42-minishell-78a0df21c2eabb2d652fbbeb198aafdee328248e.tar.bz2
42-minishell-78a0df21c2eabb2d652fbbeb198aafdee328248e.tar.xz
42-minishell-78a0df21c2eabb2d652fbbeb198aafdee328248e.tar.zst
42-minishell-78a0df21c2eabb2d652fbbeb198aafdee328248e.zip
Change
Diffstat (limited to '')
-rw-r--r--src/u_vars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/u_vars.c b/src/u_vars.c
index d6ed5f2..4001020 100644
--- a/src/u_vars.c
+++ b/src/u_vars.c
@@ -90,7 +90,7 @@ static char
{
char *varval;
- if (!ft_strncmp(varname, FT_RET_VAR, 3))
+ if (ft_strncmp(varname, FT_RET_VAR, 3) == 0)
{
if (!(varval = ft_uitoa(msh->ret)))
{
@@ -100,7 +100,7 @@ static char
}
return (varval);
}
- else if (!ft_strncmp(varname, FT_ZER_VAR, 3))
+ else if (ft_strncmp(varname, FT_ZER_VAR, 3) == 0)
{
if (!(varval = ft_strdup(msh->shname)))
{