Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
b7f4541
)
inititalize run_command()'s buf to UNKNOWN_STR by default
author
raiz <
[email protected]
>
Tue, 27 Dec 2016 15:58:31 +0000
(18:58 +0300)
committer
raiz <
[email protected]
>
Tue, 27 Dec 2016 15:58:31 +0000
(18:58 +0300)
slstatus.c
patch
|
blob
|
history
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) {