mirror of https://github.com/mpv-player/mpv
vo_kitty: init all fields of struct sigaction before using it
This commit is contained in:
parent
e27eb3dead
commit
0262ec3829
|
@ -340,8 +340,9 @@ static int preinit(struct vo *vo)
|
|||
mp_sws_enable_cmdline_opts(p->sws, vo->global);
|
||||
|
||||
#if HAVE_POSIX
|
||||
struct sigaction sa;
|
||||
sa.sa_handler = handle_winch;
|
||||
struct sigaction sa = {
|
||||
.sa_handler = handle_winch,
|
||||
};
|
||||
sigaction(SIGWINCH, &sa, &saved_sigaction);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue