inititalize run_command()'s buf to UNKNOWN_STR by default
raiz raiz@firemail.cc
Tue, 27 Dec 2016 18:58:31 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
slstatus.c
→
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) {