diff --git a/profile/src/nsProfile.cpp b/profile/src/nsProfile.cpp index dfcf08a23b7..921d3527e42 100644 --- a/profile/src/nsProfile.cpp +++ b/profile/src/nsProfile.cpp @@ -407,7 +407,7 @@ nsProfile::LoadDefaultProfileDir(nsCString & profileURLStr) } if (confirmAutomigration) { - if (profileURLStr == (const char*)CONFIRM_AUTOMIGRATE_URL) { + if (profileURLStr.Equals(CONFIRM_AUTOMIGRATE_URL)) { PRBool automigrate = PR_FALSE; rv = GetAutomigrate(&automigrate); if (NS_SUCCEEDED(rv) && automigrate) {