gallium/dri: Shut up a compiler warning.
authorEric Anholt <eric@anholt.net>
Wed, 11 Feb 2015 22:40:47 +0000 (14:40 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Feb 2015 23:15:29 +0000 (15:15 -0800)
The compiler doesn't see that buffers is set in the !image case and used
in the !image case.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/state_trackers/dri/dri2.c

index aecc8eb132274a020a7c585427b1594545070543..7d65ba30f293aea9c62009f5a8d2e47a8cc54db5 100644 (file)
@@ -368,7 +368,7 @@ dri2_allocate_textures(struct dri_context *ctx,
    /* Image specific variables */
    struct __DRIimageList images;
    /* Dri2 specific variables */
-   __DRIbuffer *buffers;
+   __DRIbuffer *buffers = NULL;
    struct winsys_handle whandle;
    unsigned num_buffers = statts_count;