Remove obscurism.

svn path=/trunk/KDE/kdebase/workspace/; revision=527747
This commit is contained in:
Luboš Luňák 2006-04-09 09:31:02 +00:00
parent f64f8d15ae
commit 15784cf45c

View file

@ -309,9 +309,12 @@ 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)
return true;
if( char *dot = strchr(hostnamebuf, '.'))
{
*dot = '\0';
if( host == hostnamebuf )
return true;
}
}
return false;
}