diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-03 01:28:11 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-03 01:28:11 +0000 |
commit | 07ecf49521973bbb205b199c39e1171f1163df2b (patch) | |
tree | 8deb35557c78408fb0ae3bba4006f42cfb713d73 | |
parent | c6b3b3354c2d9139b19b132051d434e97dd19715 (diff) |
Coverity #992: Prevent a NULL chase.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Xext/sync.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -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; |