From: raiz Date: Tue, 27 Dec 2016 15:58:31 +0000 (+0300) Subject: inititalize run_command()'s buf to UNKNOWN_STR by default X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=e1c5476291cf35693c072327cc5a0261983e1573;p=suckless%2Fslstatus.git inititalize run_command()'s buf to UNKNOWN_STR by default --- 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) {