fix logic and add a cast to fix #12435

This commit is contained in:
sspitzer%netscape.com 1999-08-25 06:07:44 +00:00
parent 814536828f
commit 767d06c436

View File

@ -288,7 +288,7 @@ NS_IMETHODIMP nsNntpUrl::GetMessageHeader(nsIMsgDBHdr ** aMsgHdr)
nsCString newsgroupURI(kNewsMessageRootURI);
newsgroupURI.Append("/");
if (userName || (userName != "")) {
if (userName && (userName != (const char *)"")) {
newsgroupURI.Append(userName);
newsgroupURI.Append("@");
}