projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb1f1de
)
Add blank line after setlocale
author
Aaron Marcher
<me@drkhsh.at>
Sat, 16 Sep 2017 12:11:49 +0000
(14:11 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sat, 16 Sep 2017 12:11:49 +0000
(14:11 +0200)
setlocale() has to be separated from the signal handling.
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index cddc79a85f2fd8efeac5aa83980d0f0a3f7354e3..d17bae7171fb817ce5e2e792b102c09bc5f1af37 100644
(file)
--- 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);