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.
This commit is contained in:
sspitzer%netscape.com 1999-09-13 20:38:23 +00:00
Родитель dd221ea8c5
Коммит afbd510ee3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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>?