summaryrefslogtreecommitdiffstats
path: root/src/u_vars.c
diff options
context:
space:
mode:
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 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);