aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-03-03 11:06:58 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-03-03 13:08:23 +0100
commit6e770378c3ec579b3e25315f0c951e838956199e (patch)
tree43f20b20620e6174d8d697d3df5a5e39ac7132de
parent7011de155a1063a77cbab2f4d1ca599e23d7b102 (diff)
downloadnx-libs-6e770378c3ec579b3e25315f0c951e838956199e.tar.gz
nx-libs-6e770378c3ec579b3e25315f0c951e838956199e.tar.bz2
nx-libs-6e770378c3ec579b3e25315f0c951e838956199e.zip
Xserver/GL/glx/glxcmd.c: Fix uninitialized xGLXQueryVersionReply.
Fixes ArcticaProject/nx-libs#324.
-rw-r--r--nx-X11/programs/Xserver/GL/glx/glxcmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/GL/glx/glxcmds.c b/nx-X11/programs/Xserver/GL/glx/glxcmds.c
index d082e84bf..efe5b25e9 100644
--- a/nx-X11/programs/Xserver/GL/glx/glxcmds.c
+++ b/nx-X11/programs/Xserver/GL/glx/glxcmds.c
@@ -783,6 +783,8 @@ int __glXQueryVersion(__GLXclientState *cl, GLbyte *pc)
(void)major;
(void)minor;
+ memset(&reply, 0, sizeof(xGLXQueryVersionReply));
+
/*
** Server should take into consideration the version numbers sent by the
** client if it wants to work with older clients; however, in this