summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRudi Heitbaum <rudi@heitbaum.com>2022-05-08 03:00:10 +0000
committerRudi Heitbaum <rudi@heitbaum.com>2022-05-08 03:00:10 +0000
commit77b8183b3395333d5d4c73e25c2d011748f15eda (patch)
treef47c33658af98a252ec1dcf2e7a5cde3326e2793
parent50ab008cb965dc9e47e0a84a1950e2485bbd3c44 (diff)
vmwgfx: fix missing array notation
Fixes error identified by gcc-12.1.0 compiler make CC libvmwgfx_la-vmwgfx_tex_video.lo vmwgfx_tex_video.c: In function 'stop_video': vmwgfx_tex_video.c:240:20: error: the comparison will always evaluate as 'true' for the address of 'yuv' will never be NULL [-Werror=address] 240 | if (priv->yuv[i]) { | ^~~~
-rw-r--r--vmwgfx/vmwgfx_tex_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmwgfx/vmwgfx_tex_video.c b/vmwgfx/vmwgfx_tex_video.c
index acc2b56..480a5f1 100644
--- a/vmwgfx/vmwgfx_tex_video.c
+++ b/vmwgfx/vmwgfx_tex_video.c
@@ -237,7 +237,7 @@ stop_video(ScrnInfoPtr pScrn, pointer data, Bool shutdown)
for (i=0; i<3; ++i) {
for (j=0; j<2; ++j) {
- if (priv->yuv[i]) {
+ if (priv->yuv[j][i]) {
xa_surface_destroy(priv->yuv[j][i]);
priv->yuv[j][i] = NULL;
}