diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-07-04 20:45:39 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-07-04 20:45:39 +0000 |
commit | 68bc259fa1082f7780e524fc703e926a27fc7f9a (patch) | |
tree | 99078c14b3002f1697f25dfb4d44380e4e4d5161 /src | |
parent | 83c3e3ee49a0aa3ceaf52e2408cc253fc5dc8af4 (diff) |
NULL check
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_modes.c | 2 |
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) / |