1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

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.
This commit is contained in:
wm4 2019-07-06 23:54:50 +02:00
parent 11027e99f2
commit 9e1945d307

View File

@ -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);