summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 02:09:05 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 02:09:05 +0000
commit61926dbe592468076f8c9a666f0098d067d2213e (patch)
treee006058accffabc802c11d151c68676d5aaa8725
parent7ef95da8a3e22e710882590fc47d56893159cb5d (diff)
Coverity #271: Fix an unbelievably boneheaded NULL chase.
-rw-r--r--ChangeLog5
-rw-r--r--GL/glx/glxcmdsswap.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4df3ec605..4a1725c68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-04-02 Adam Jackson <ajax@freedesktop.org>
+ * GL/glx/glxcmdsswap.c:
+ Coverity #271: Fix an unbelievably boneheaded NULL chase.
+
+2006-04-02 Adam Jackson <ajax@freedesktop.org>
+
* hw/xnest/Pixmap.c:
Coverity #616: Fix a rare memory leak.
diff --git a/GL/glx/glxcmdsswap.c b/GL/glx/glxcmdsswap.c
index ed1276f22..0f8b67496 100644
--- a/GL/glx/glxcmdsswap.c
+++ b/GL/glx/glxcmdsswap.c
@@ -345,7 +345,7 @@ int __glXSwapUseXFont(__GLXclientState *cl, GLbyte *pc)
int __glXSwapQueryExtensionsString(__GLXclientState *cl, GLbyte *pc)
{
- xGLXQueryExtensionsStringReq *req = NULL;
+ xGLXQueryExtensionsStringReq *req = (xGLXQueryExtensionsStringReq *)pc;
__GLX_DECLARE_SWAP_VARIABLES;
__GLX_SWAP_SHORT(&req->length);