NULL check

This commit is contained in:
Alan Hourihane 2005-07-04 20:45:39 +00:00
parent 83c3e3ee49
commit 68bc259fa1
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
*/
if (modeOK && !pMode) {
int refresh = 0, calcrefresh = 0;
DisplayModePtr newMode;
DisplayModePtr newMode = NULL;
for (p = pScrn->monitor->Modes; p != NULL; p = p->next) {
calcrefresh = (int)(((double)(p->Clock * 1000) /