projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b925b7
)
glx: Prevent potential null pointer deference in driCreateContext.
author
Vinson Lee
<vlee@vmware.com>
Mon, 23 Nov 2009 06:30:32 +0000
(
01:30
-0500)
committer
Vinson Lee
<vlee@vmware.com>
Mon, 23 Nov 2009 06:30:32 +0000
(
01:30
-0500)
src/glx/x11/drisw_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/drisw_glx.c
b/src/glx/x11/drisw_glx.c
index 15e15866582c18f84b6db0b07ddaa84d25df1d61..1866b2cc870b5f5bd25914c62b6c1f07a5f8ec9d 100644
(file)
--- a/
src/glx/x11/drisw_glx.c
+++ b/
src/glx/x11/drisw_glx.c
@@
-250,12
+250,14
@@
driCreateContext(__GLXscreenConfigs * psc,
{
__GLXDRIcontextPrivate *pcp, *pcp_shared;
__GLXDRIconfigPrivate *config = (__GLXDRIconfigPrivate *) mode;
- const __DRIcoreExtension *core
= psc->core
;
+ const __DRIcoreExtension *core;
__DRIcontext *shared = NULL;
if (!psc || !psc->driScreen)
return NULL;
+ core = psc->core;
+
if (shareList) {
pcp_shared = (__GLXDRIcontextPrivate *) shareList->driContext;
shared = pcp_shared->driContext;