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