summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xvmc
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-02-21 22:00:44 -0800
committerVinson Lee <[email protected]>2013-02-22 19:32:00 -0800
commit2fa9e4c97cd7580010a8aa2eb3026e8f2bdb0035 (patch)
tree5c37f094454068930fabb7b348c0804354cd35fc /src/gallium/state_trackers/xvmc
parent54afbce934b4adb7258d79699c37312d378a7401 (diff)
st/xvmc/tests: Ensure colorkey is initialized.
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xvmc')
-rw-r--r--src/gallium/state_trackers/xvmc/tests/xvmc_bench.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
index 4c37b8dade7..fe858021936 100644
--- a/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
+++ b/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
@@ -222,6 +222,10 @@ int main(int argc, char **argv)
Atom xv_colorkey = XInternAtom(display, "XV_COLORKEY", 0);
XvGetPortAttribute(display, port_num, xv_colorkey, &colorkey);
}
+ else
+ {
+ colorkey = 0;
+ }
root = XDefaultRootWindow(display);
window = XCreateSimpleWindow(display, root, 0, 0, config.output_width, config.output_height, 0, 0, colorkey);