mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 620411: Remove nsUserInfo::GetDomain()'s useless null check on an array in nsUserInfoUnix.cpp. r=bsmedberg
This commit is contained in:
parent
10859f02d6
commit
6533d43063
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user