diff options
author | Aaron Marcher <me@drkhsh.at> | 2017-09-16 14:11:49 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-09-16 14:11:49 +0200 |
commit | 8e25af7dc33bdcc0df6f4f173da7a2f883141d70 (patch) | |
tree | 1b863cc694b167334edd3d222c46f48e50154657 | |
parent | fb1f1dea2e8e4d11f3e213d18c2b03fd76751255 (diff) |
Add blank line after setlocale
setlocale() has to be separated from the signal handling.
-rw-r--r-- | slstatus.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |