summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-03-30 17:11:41 +0200
committerMarek Olšák <[email protected]>2017-03-30 17:14:47 +0200
commitbb2e05885d476702f1fade95ec32eb5eb6079374 (patch)
tree320589d1bad6cbc1c726fc75a72597368dadbf67
parent65732a8ff632e6aa32af521c9d6531cbb4fab030 (diff)
vdpau: fix a maybe-uninitialized warning
-rw-r--r--src/gallium/state_trackers/vdpau/presentation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 7869f4c5031..54f15ff34b1 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;