Closed ProjektPhoenix closed 6 months ago
If we do another assignment, e.g. with ft_strdup(), the return value of path as handled in function add_to_hist_file() in same file should check if return value/path is NULL and act upon it.
correct! will fix!
If ft_strjoin malloc and assignment to path from HOME environment variable fails, currently a direct assignment of path is done:
path = "~/minihistfile";
There are a couple of issues with this:path = ft_strdup("~/.minishell_history");