mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-02 13:08:01 +02:00
Use localhost as screen name whe hostname is empty.
This commit is contained in:
parent
7beb85abb7
commit
6dfc7dbb1c
1 changed files with 4 additions and 0 deletions
|
|
@ -626,7 +626,11 @@ main (int argc, char **argv)
|
|||
}
|
||||
|
||||
if (!name)
|
||||
{
|
||||
name = host;
|
||||
if (!name)
|
||||
name = "localhost";
|
||||
}
|
||||
|
||||
slash = strrchr(displayname, '/');
|
||||
if (slash) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue