mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 12:18:09 +02:00
os/connection: don't leave port uninitialized
If DISPLAY is set but does not start with `/`, `port` is now
initialized.
Fixes 83d0d91106
This commit is contained in:
parent
87e5db75fb
commit
762096628c
1 changed files with 1 additions and 1 deletions
|
|
@ -1018,7 +1018,7 @@ ListenOnOpenFD(int fd, int noxauth)
|
|||
}
|
||||
}
|
||||
|
||||
if (!display_env) {
|
||||
if (!display_env || display_env[0] != '/') {
|
||||
/* Just some default so things don't break and die. */
|
||||
snprintf(port, sizeof(port), ":%d", atoi(display));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue