From: Marek Olšák Date: Thu, 30 Mar 2017 15:11:41 +0000 (+0200) Subject: vdpau: fix a maybe-uninitialized warning X-Git-Tag: upstream/17.1.0~750 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb2e05885d476702f1fade95ec32eb5eb6079374;p=platform%2Fupstream%2Fmesa.git vdpau: fix a maybe-uninitialized warning --- diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index 7869f4c..54f15ff 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -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;