projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f4541
)
inititalize run_command()'s buf to UNKNOWN_STR by default
author
raiz
<raiz@firemail.cc>
Tue, 27 Dec 2016 15:58:31 +0000
(18:58 +0300)
committer
raiz
<raiz@firemail.cc>
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 329093f24c6bdced34a2566895064ba52790b927..b5937656121022e4ab135f9d4524072fbcd92e5a 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) {