small changes

This commit is contained in:
Loic Deridder
2025-01-20 13:20:00 +01:00
parent ef8ba221e2
commit 81e0c7c4ee
4 changed files with 20 additions and 20 deletions

View File

@@ -52,7 +52,7 @@ int extractenv(char *str, char **envp)
i++;
if (i >= 1)
tmp = ft_substr(str, 1, i - 1);
var = ft_getenv(tmp, envp);
var = get_var_value(tmp, envp);
free(tmp);
if (var)
ft_printf("%s", var);