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 /Xext | |
parent | c6b3b3354c2d9139b19b132051d434e97dd19715 (diff) |
Coverity #992: Prevent a NULL chase.
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |