Xinqi Bao's Git
projects
/
slstatus.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
fb1f1de
)
Add blank line after setlocale
author
Aaron Marcher <
[email protected]
>
Sat, 16 Sep 2017 12:11:49 +0000
(14:11 +0200)
committer
Aaron Marcher <
[email protected]
>
Sat, 16 Sep 2017 12:11:49 +0000
(14:11 +0200)
setlocale() has to be separated from the signal handling.
slstatus.c
diff
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index
cddc79a
..
d17bae7
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);