vdpau: fix a maybe-uninitialized warning
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 15:11:41 +0000 (17:11 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 15:14:47 +0000 (17:14 +0200)
src/gallium/state_trackers/vdpau/presentation.c

index 7869f4c503156ab936b3d1b2917fcae7118e4efa..54f15ff34b1b9563f5bf212d7e0a60aa11cf841b 100644 (file)
@@ -210,7 +210,7 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
 
    struct pipe_context *pipe;
    struct pipe_resource *tex;
-   struct pipe_surface surf_templ, *surf_draw;
+   struct pipe_surface surf_templ, *surf_draw = NULL;
    struct u_rect src_rect, dst_clip, *dirty_area;
 
    struct vl_compositor *compositor;