From 68bc259fa1082f7780e524fc703e926a27fc7f9a Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 4 Jul 2005 20:45:39 +0000 Subject: NULL check --- src/i830_modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_modes.c b/src/i830_modes.c index c1026ee4..97c364bc 100644 --- a/src/i830_modes.c +++ b/src/i830_modes.c @@ -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) / -- cgit v1.2.3