builtin/cd: fix SEGFAULT when HOME or PWD has not been set
This can be reproduced using: $ env -i ./minishell cd - and $ env -i ./minishell cd and $ env -i ./minishell cd ~
Please register or sign in to comment
This can be reproduced using: $ env -i ./minishell cd - and $ env -i ./minishell cd and $ env -i ./minishell cd ~