diff src/misc1.c @ 2030:66b1822ba176 v7.2.326

updated for version 7.2.326
author Bram Moolenaar <bram@zimbu.org>
date Wed, 06 Jan 2010 17:53:38 +0100
parents 9cbe94fd5c8f
children e319a4fe6e32
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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);