Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
inititalize run_command()'s buf to UNKNOWN_STR by default
[slstatus.git]
/
slstatus.c
diff --git
a/slstatus.c
b/slstatus.c
index
329093f
..
b593765
100644
(file)
--- 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) {