summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-01-11 12:07:15 -0800
committerEric Anholt <[email protected]>2012-01-11 12:07:15 -0800
commit35cdd7b6dbc763fe57bf466def0a4257ca09beb8 (patch)
treec94d8dfe751763781e55950d3d1261f8adb3ea84
parentba6f4c9ee2294de66977d292972d47355fa58be0 (diff)
i965: Fix compiler warning from uninitialized "success" value.
This shouldn't happen, because the DDX should only load this driver if IS_965. But better to do something defined in that case.
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index ce96ddda85c..b0e800b7ecc 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -525,7 +525,7 @@ intelCreateContext(gl_api api,
{
__DRIscreen *sPriv = driContextPriv->driScreenPriv;
struct intel_screen *intelScreen = sPriv->driverPrivate;
- bool success;
+ bool success = false;
#ifdef I915
if (IS_9XX(intelScreen->deviceID)) {