summaryrefslogtreecommitdiffstats
path: root/video/out/vo_kitty.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_kitty.c')
-rw-r--r--video/out/vo_kitty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/vo_kitty.c b/video/out/vo_kitty.c
index 7d548c7..f8f0b07 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