xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 17 08:29:57 UTC 2025
os/connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 080fb49eff4de7ec3a29214994d1403e4d877f6a
Author: Olivier Fourdan <ofourdan at redhat.com>
Date: Wed Jan 15 09:40:34 2025 +0100
os/connection: Make sure partial is initialized
Following the change in Xtrans 1.5 that allows for partial connections
to succeed, we need to make sure partial is properly initialized at
first, otherwise we rely on an uninitialized variable.
Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
Suggested-by: Twaik Yont <twaikyont at gmail.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1783
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1765>
diff --git a/os/connection.c b/os/connection.c
index 0b81106a5..60ee6e6f9 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -237,7 +237,7 @@ void
CreateWellKnownSockets(void)
{
int i;
- int partial;
+ int partial = 0;
/* display is initialized to "0" by main(). It is then set to the display
* number if specified on the command line. */
More information about the xorg-commit
mailing list