mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
fix for #14639 r=sspitzer
This commit is contained in:
parent
e05038585c
commit
d9026972d8
@ -70,7 +70,11 @@ nsSmtpServer::SetHostname(const char * aHostname)
|
||||
nsCAutoString pref;
|
||||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_PROGID, &rv);
|
||||
getPrefString("hostname", pref);
|
||||
return prefs->SetCharPref(pref, aHostname);
|
||||
if (aHostname)
|
||||
return prefs->SetCharPref(pref, aHostname);
|
||||
else
|
||||
prefs->ClearUserPref(pref);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@ -92,7 +96,11 @@ nsSmtpServer::SetUsername(const char * aUsername)
|
||||
nsCAutoString pref;
|
||||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_PROGID, &rv);
|
||||
getPrefString("username", pref);
|
||||
return prefs->SetCharPref(pref, aUsername);
|
||||
if (aUsername)
|
||||
return prefs->SetCharPref(pref, aUsername);
|
||||
else
|
||||
prefs->ClearUserPref(pref);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user