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:
parent
11027e99f2
commit
9e1945d307
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user