From 9e1c49ca333d2fe1bbef2d04e72d0826a0a379c6 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Mon, 13 Sep 1999 20:38:23 +0000 Subject: [PATCH] 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. --- profile/pref-migrator/src/nsPrefMigration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/pref-migrator/src/nsPrefMigration.cpp b/profile/pref-migrator/src/nsPrefMigration.cpp index 71b373aa516..304b48e99f1 100644 --- a/profile/pref-migrator/src/nsPrefMigration.cpp +++ b/profile/pref-migrator/src/nsPrefMigration.cpp @@ -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 /?