Remove obscurism.
svn path=/trunk/KDE/kdebase/workspace/; revision=527747
This commit is contained in:
parent
f64f8d15ae
commit
15784cf45c
1 changed files with 6 additions and 3 deletions
|
@ -309,10 +309,13 @@ bool isLocalMachine( const QByteArray& host )
|
|||
hostnamebuf[sizeof(hostnamebuf)-1] = 0;
|
||||
if (host == hostnamebuf)
|
||||
return true;
|
||||
char *dot = strchr(hostnamebuf, '.');
|
||||
if (dot && !(*dot = 0) && host == hostnamebuf)
|
||||
if( char *dot = strchr(hostnamebuf, '.'))
|
||||
{
|
||||
*dot = '\0';
|
||||
if( host == hostnamebuf )
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue