fix profile migration on windows (and probably mac.)

on UNIX, "mail.directory" is always set.
on windows, it may be set to ""
add the PL_strlen test to tree "" as not being set, so we assume the default 4.x location, which is what we want.


git-svn-id: svn://10.0.0.236/trunk@47160 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
1999-09-13 20:38:23 +00:00
parent f2195d5ee2
commit 9532af4dd5

View File

@@ -582,7 +582,7 @@ nsPrefMigration::GetDirFromPref(const char *oldProfilePath, const char* newProfi
if (NS_FAILED(rv)) return rv;
foundPref = m_prefs->CopyCharPref(pref, oldPath);
if((foundPref == 0) && (*oldPath))
if((foundPref == 0) && (*oldPath) && (PL_strlen(*oldPath) > 0))
{
#ifdef XP_UNIX
// what if they don't want to go to <profile>/<newDirName>?