From 07ecf49521973bbb205b199c39e1171f1163df2b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Apr 2006 01:28:11 +0000 Subject: Coverity #992: Prevent a NULL chase. --- Xext/sync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Xext/sync.c') 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; -- cgit v1.2.3