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:
3bfa5fe
)
fixed run_command behaviour for emtpy command output (uninitialized)
author
Aaron Marcher
<info@nulltime.net>
Fri, 9 Sep 2016 17:18:14 +0000
(19:18 +0200)
committer
Aaron Marcher (drkhsh)
<info@nulltime.net>
Fri, 9 Sep 2016 17:18:14 +0000
(19:18 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 627d270ac5852a16261914b2ca481122960350da..7b85a2385221ec1d66c93450bae70dd8e81722ea 100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-397,7
+397,7
@@
run_command(const char* command)
{
int good;
FILE *fp = popen(command, "r");
- char buffer[64];
+ char buffer[64]
= ""
;
if (fp == NULL) {
warn("Could not get command output for: %s", command);