summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 8d611a46..dc28c50f 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1565,6 +1565,8 @@ I830UseDDC(ScrnInfoPtr pScrn)
Bool ret = FALSE;
int i;
+ if (!DDC) return 0;
+
/* Now change the hsync/vrefresh values of the current monitor to
* match those of DDC */
for (i = 0; i < 4; i++) {