Mesa (master): vdpau: fix a maybe-uninitialized warning
Marek Olšák
mareko at kemper.freedesktop.org
Thu Mar 30 15:17:54 UTC 2017
Module: Mesa
Branch: master
Commit: bb2e05885d476702f1fade95ec32eb5eb6079374
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb2e05885d476702f1fade95ec32eb5eb6079374
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Mar 30 17:11:41 2017 +0200
vdpau: fix a maybe-uninitialized warning
---
src/gallium/state_trackers/vdpau/presentation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 7869f4c503..54f15ff34b 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;
More information about the mesa-commit
mailing list