commit 8e25af7dc33bdcc0df6f4f173da7a2f883141d70
parent fb1f1dea2e8e4d11f3e213d18c2b03fd76751255
Author: Aaron Marcher <me@drkhsh.at>
Date: Sat, 16 Sep 2017 14:11:49 +0200
Add blank line after setlocale
setlocale() has to be separated from the signal handling.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);