summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-07-01 17:08:16 -0700
committerEric Anholt <eric@anholt.net>2009-07-02 14:07:09 -0700
commitcb4ef34214d61fb48bdff689a85ea107060e061b (patch)
treeb8990d381ab57de3cfe594af6181f4e49fb7f20f
parentd1c8a0a30860ab6cd4a50582972fb185766595bd (diff)
intel: Init num_fences to clean up valgrind warning.
Valgrind doesn't know that a successful getparam sets the target of the pointer, so just set the value beforehand.
-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 5b3fa9ead3..8b3761c6bf 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -598,7 +598,7 @@ intel_init_bufmgr(intelScreenPrivate *intelScreen)
GLboolean gem_supported;
struct drm_i915_getparam gp;
__DRIscreenPrivate *spriv = intelScreen->driScrnPriv;
- int num_fences;
+ int num_fences = 0;
intelScreen->no_hw = getenv("INTEL_NO_HW") != NULL;