summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 01:28:11 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 01:28:11 +0000
commit07ecf49521973bbb205b199c39e1171f1163df2b (patch)
tree8deb35557c78408fb0ae3bba4006f42cfb713d73
parentc6b3b3354c2d9139b19b132051d434e97dd19715 (diff)
Coverity #992: Prevent a NULL chase.
-rw-r--r--ChangeLog5
-rw-r--r--Xext/sync.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b38140073..3121f45a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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:
Bump to 1.1.99.1.
diff --git a/Xext/sync.c b/Xext/sync.c
index c43c4af58..3d3d67559 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -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;