From 78a0df21c2eabb2d652fbbeb198aafdee328248e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 4 Aug 2020 14:51:40 +0200 Subject: Change --- src/u_vars.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/u_vars.c') 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))) { -- cgit v1.2.3