[Mesa-dev] [PATCH 4/4] fix maybe uninitialized variable in xvmc
Marc Dietrich
marvin24 at gmx.de
Fri Mar 23 13:32:58 UTC 2018
initialize palette_format to some known value.
Signed-off-by: Marc Dietrich <marvin24 at gmx.de>
---
src/gallium/state_trackers/xvmc/subpicture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/xvmc/subpicture.c b/src/gallium/state_trackers/xvmc/subpicture.c
index bc26976e28..e28fd43f7a 100644
--- a/src/gallium/state_trackers/xvmc/subpicture.c
+++ b/src/gallium/state_trackers/xvmc/subpicture.c
@@ -266,7 +266,7 @@ Status XvMCCreateSubpicture(Display *dpy, XvMCContext *context, XvMCSubpicture *
struct pipe_context *pipe;
struct pipe_resource tex_templ, *tex;
struct pipe_sampler_view sampler_templ;
- enum pipe_format palette_format;
+ enum pipe_format palette_format = PIPE_FORMAT_NONE;
Status ret;
XVMC_MSG(XVMC_TRACE, "[XvMC] Creating subpicture %p.\n", subpicture);
--
2.16.2
More information about the mesa-dev
mailing list