mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.2.326
This commit is contained in:
@@ -3470,7 +3470,9 @@ init_homedir()
|
||||
|
||||
homedrive = mch_getenv((char_u *)"HOMEDRIVE");
|
||||
homepath = mch_getenv((char_u *)"HOMEPATH");
|
||||
if (homedrive != NULL && homepath != NULL
|
||||
if (homepath == NULL || *homepath == NUL)
|
||||
homepath = "\\";
|
||||
if (homedrive != NULL
|
||||
&& STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
|
||||
{
|
||||
sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
|
||||
|
Reference in New Issue
Block a user