Coverity #992: Prevent a NULL chase.

This commit is contained in:
Adam Jackson 2006-04-03 01:28:11 +00:00
parent c6b3b3354c
commit 07ecf49521
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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:

View File

@ -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;