diff options
author | raiz <raiz@firemail.cc> | 2016-12-27 18:58:31 +0300 |
---|---|---|
committer | raiz <raiz@firemail.cc> | 2016-12-27 18:58:31 +0300 |
commit | e1c5476291cf35693c072327cc5a0261983e1573 (patch) | |
tree | fc0164310cfa344cc3875b1bd4f545926f8f7fd0 | |
parent | b7f4541506aac11a92d947939f6e9da8af49dd26 (diff) |
inititalize run_command()'s buf to UNKNOWN_STR by default
-rw-r--r-- | slstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |