trivial errors-as-warnings fix for gcc4.3.

This commit is contained in:
dwitte@stanford.edu 2008-02-02 21:06:57 -08:00
parent 7e71b36cf5
commit 4baaa33438

View File

@ -1045,7 +1045,7 @@ nsCookieService::ImportCookies(nsIFile *aCookieFile)
const nsASingleFragmentCString &host = Substring(buffer, hostIndex, isDomainIndex - hostIndex - 1);
// check for bad legacy cookies (domain not starting with a dot, or containing a port),
// and discard
if (isDomain && !host.IsEmpty() && host.First() != '.' ||
if ((isDomain && !host.IsEmpty() && host.First() != '.') ||
host.FindChar(':') != kNotFound) {
continue;
}