intel: Init num_fences to clean up valgrind warning.
authorEric Anholt <eric@anholt.net>
Thu, 2 Jul 2009 00:08:16 +0000 (17:08 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 2 Jul 2009 21:07:09 +0000 (14:07 -0700)
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

index 5b3fa9ead323b78f014242918b3806c5e4493e67..8b3761c6bf294d2ade1eaddb460f5c7a70295e13 100644 (file)
@@ -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;