From 9e1945d3074dbde9e730ae8be8eea7b86e9b7112 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 6 Jul 2019 23:54:50 +0200 Subject: win_state: silence a valgrind warning m_geometry_apply() will read and modify the dummy variable. It's not actually used for anything, but valgrind will still warn against uninitialized data. I'm not sure whether this was UB, but in any case it's annoying when running valgrind. --- video/out/win_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/win_state.c b/video/out/win_state.c index f9fb0cab52..96857160cf 100644 --- a/video/out/win_state.c +++ b/video/out/win_state.c @@ -42,7 +42,7 @@ static void apply_autofit(int *w, int *h, int scr_w, int scr_h, if (!geo->wh_valid) return; - int dummy; + int dummy = 0; int n_w = *w, n_h = *h; m_geometry_apply(&dummy, &dummy, &n_w, &n_h, scr_w, scr_h, geo); -- cgit v1.2.3