From cb4ef34214d61fb48bdff689a85ea107060e061b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Jul 2009 17:08:16 -0700 Subject: [PATCH] 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. --- src/mesa/drivers/dri/intel/intel_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 5b3fa9ead32..8b3761c6bf2 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; -- 2.30.2