mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 18:20:08 +01:00
Coverity #986: Prevent a NULL chase.
This commit is contained in:
parent
07ecf49521
commit
c03cfca380
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* GL/glx/glxcmds.c:
|
||||
Coverity #986: Prevent a NULL chase.
|
||||
|
||||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* Xext/sync.c:
|
||||
|
|
|
|||
|
|
@ -1926,10 +1926,10 @@ static int __glXBindSwapBarrierSGIX(__GLXclientState *cl, GLbyte *pc)
|
|||
XID drawable = req->drawable;
|
||||
int barrier = req->barrier;
|
||||
DrawablePtr pDraw = (DrawablePtr) LookupDrawable(drawable, client);
|
||||
int screen = pDraw->pScreen->myNum;
|
||||
|
||||
int screen;
|
||||
|
||||
if (pDraw && (pDraw->type == DRAWABLE_WINDOW)) {
|
||||
screen = pDraw->pScreen->myNum;
|
||||
if (__glXSwapBarrierFuncs &&
|
||||
__glXSwapBarrierFuncs[screen].bindSwapBarrierFunc) {
|
||||
int ret = __glXSwapBarrierFuncs[screen].bindSwapBarrierFunc(screen, drawable, barrier);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue