Bug 620411: Remove nsUserInfo::GetDomain()'s useless null check on an array in nsUserInfoUnix.cpp. r=bsmedberg

This commit is contained in:
timeless@mozdev.org 2015-01-20 10:00:54 -08:00
parent 10859f02d6
commit 6533d43063

View File

@ -122,7 +122,7 @@ nsUserInfo::GetDomain(char * *aDomain)
// try to get the hostname from the nodename
// on machines that use DHCP, domainname may not be set
// but the nodename might.
if (buf.nodename && buf.nodename[0]) {
if (buf.nodename[0]) {
// if the nodename is foo.bar.org, use bar.org as the domain
char *pos = strchr(buf.nodename,'.');
if (pos) {