Add blank line after setlocale
authorAaron Marcher <me@drkhsh.at>
Sat, 16 Sep 2017 12:11:49 +0000 (14:11 +0200)
committerAaron 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

index cddc79a85f2fd8efeac5aa83980d0f0a3f7354e3..d17bae7171fb817ce5e2e792b102c09bc5f1af37 100644 (file)
@@ -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);