Commit 07ecf495 authored by Adam Jackson's avatar Adam Jackson 💣

Coverity #992: Prevent a NULL chase.

parent c6b3b335
2006-04-02 Adam Jackson <ajax@freedesktop.org>
* Xext/sync.c:
Coverity #992: Prevent a NULL chase.
2006-04-02 Adam Jackson <ajax@freedesktop.org>
* configure.ac:
......
......@@ -1112,7 +1112,7 @@ SyncComputeBracketValues(pCounter, startOver)
{
SyncTriggerList *pCur;
SyncTrigger *pTrigger;
SysCounterInfo *psci = pCounter->pSysCounterInfo;
SysCounterInfo *psci;
CARD64 *pnewgtval = NULL;
CARD64 *pnewltval = NULL;
SyncCounterType ct;
......@@ -1120,6 +1120,7 @@ SyncComputeBracketValues(pCounter, startOver)
if (!pCounter)
return;
psci = pCounter->pSysCounterInfo;
ct = pCounter->pSysCounterInfo->counterType;
if (ct == XSyncCounterNeverChanges)
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment