summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-22 11:19:46 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-22 11:19:46 -0700
commit90beb8c27b4206b593898d346bf37ab49e75b975 (patch)
tree3a3d9b4a7744d7915ce2804489fe273621f191b7
parent55d219394ad6af8e25ff604bcbb49d5a551bd348 (diff)
Set pScrn to NULL before calling xf86ConfigPciEntity.pci-rework
Why is the interface to xf86ConfigPciEntity so filled with hate?
-rw-r--r--src/mga_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 2d054cf..927e9a4 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -792,7 +792,7 @@ MGAProbe(DriverPtr drv, int flags)
if (flags & PROBE_DETECT)
foundScreen = TRUE;
else for (i = 0; i < numUsed; i++) {
- ScrnInfoPtr pScrn;
+ ScrnInfoPtr pScrn = NULL;
EntityInfoPtr pEnt;
#ifdef DISABLE_VGA_IO
MgaSavePtr smga;