summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorraiz <raiz@firemail.cc>2016-12-27 18:58:31 +0300
committerraiz <raiz@firemail.cc>2016-12-27 18:58:31 +0300
commite1c5476291cf35693c072327cc5a0261983e1573 (patch)
treefc0164310cfa344cc3875b1bd4f545926f8f7fd0 /slstatus.c
parentb7f4541506aac11a92d947939f6e9da8af49dd26 (diff)
inititalize run_command()'s buf to UNKNOWN_STR by default
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c2
1 files changed, 1 insertions, 1 deletions
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) {