summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2016-09-09 19:18:14 +0200
committerAaron Marcher (drkhsh) <info@nulltime.net>2016-09-09 19:18:14 +0200
commit98f3985d3ee542fe98b8182ed8f4ced632032b31 (patch)
tree79d035f63bcebef60f6c2105b131ee6540e5ef63 /slstatus.c
parent3bfa5fe60d69e800dbe4364cf5122af21d00fd4c (diff)
fixed run_command behaviour for emtpy command output (uninitialized)
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 627d270..7b85a23 100644
--- 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);