From 8e25af7dc33bdcc0df6f4f173da7a2f883141d70 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 16 Sep 2017 14:11:49 +0200 Subject: Add blank line after setlocale setlocale() has to be separated from the signal handling. --- slstatus.c | 1 + 1 file changed, 1 insertion(+) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index cddc79a..d17bae7 100644 --- a/slstatus.c +++ b/slstatus.c @@ -843,6 +843,7 @@ main(int argc, char *argv[]) } setlocale(LC_ALL, ""); + memset(&act, 0, sizeof(act)); act.sa_handler = terminate; sigaction(SIGINT, &act, NULL); -- cgit v1.2.3