diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-24 02:10:27 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-28 10:46:16 +0100 |
commit | 0262ec38296ddcdeabf5182912dfe83a7dd206d3 (patch) | |
tree | 64e3c271108ef565eb57ca7b40cf04b1e0a323ee /video | |
parent | e27eb3deadbd1eda471e3ab677668847f1d6cf8a (diff) | |
download | mpv-0262ec38296ddcdeabf5182912dfe83a7dd206d3.tar.bz2 mpv-0262ec38296ddcdeabf5182912dfe83a7dd206d3.tar.xz |
vo_kitty: init all fields of struct sigaction before using it
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_kitty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/vo_kitty.c b/video/out/vo_kitty.c index 7d548c7c34..f8f0b071c6 100644 --- a/video/out/vo_kitty.c +++ b/video/out/vo_kitty.c @@ -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 |