mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 06:20:14 +01:00
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@redhat.com> Suggested-by: Twaik Yont <twaikyont@gmail.com> Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1783 Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1765>
This commit is contained in:
parent
92bcebfd7e
commit
080fb49eff
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue