commit e1c5476291cf35693c072327cc5a0261983e1573 parent b7f4541506aac11a92d947939f6e9da8af49dd26 Author: raiz <raiz@firemail.cc> Date: Tue, 27 Dec 2016 18:58:31 +0300 inititalize run_command()'s buf to UNKNOWN_STR by default Diffstat:
M | slstatus.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/slstatus.c b/slstatus.c @@ -407,7 +407,7 @@ run_command(const char *cmd) { char *nlptr; FILE *fp; - char buf[1024] = "n/a"; + char buf[1024] = UNKNOWN_STR; fp = popen(cmd, "r"); if (fp == NULL) {