summaryrefslogtreecommitdiff
path: root/src/i830_modes.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-07-04 20:45:39 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-07-04 20:45:39 +0000
commit68bc259fa1082f7780e524fc703e926a27fc7f9a (patch)
tree99078c14b3002f1697f25dfb4d44380e4e4d5161 /src/i830_modes.c
parent83c3e3ee49a0aa3ceaf52e2408cc253fc5dc8af4 (diff)
NULL check
Diffstat (limited to 'src/i830_modes.c')
-rw-r--r--src/i830_modes.c2
1 files changed, 1 insertions, 1 deletions
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) /