From e1c5476291cf35693c072327cc5a0261983e1573 Mon Sep 17 00:00:00 2001 From: raiz Date: Tue, 27 Dec 2016 18:58:31 +0300 Subject: inititalize run_command()'s buf to UNKNOWN_STR by default --- slstatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index 329093f..b593765 100644 --- 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) { -- cgit v1.2.3