vo_kitty: init all fields of struct sigaction before using it

This commit is contained in:
Kacper Michajłow 2023-11-24 02:10:27 +01:00 committed by sfan5
parent e27eb3dead
commit 0262ec3829
1 changed files with 3 additions and 2 deletions

View File

@ -340,8 +340,9 @@ static int preinit(struct vo *vo)
mp_sws_enable_cmdline_opts(p->sws, vo->global); mp_sws_enable_cmdline_opts(p->sws, vo->global);
#if HAVE_POSIX #if HAVE_POSIX
struct sigaction sa; struct sigaction sa = {
sa.sa_handler = handle_winch; .sa_handler = handle_winch,
};
sigaction(SIGWINCH, &sa, &saved_sigaction); sigaction(SIGWINCH, &sa, &saved_sigaction);
#endif #endif