Added logic to look for the HOMEPATH env var if HOME is undefined.

This commit is contained in:
mjbudd77 2021-02-09 22:22:19 -05:00
parent b8a5db5580
commit 6b4c5c1c1b
1 changed files with 4 additions and 0 deletions

View File

@ -327,6 +327,10 @@ InitConfig()
char* home_dir = getenv("HOME");
if ( home_dir == NULL )
{
home_dir = getenv("HOMEPATH");
}
if ( home_dir == NULL )
{
home_dir = "";
}