summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-02-23 18:05:08 +0100
committerMichael Stapelberg <michael@stapelberg.de>2013-02-23 18:05:08 +0100
commit4a282a49787466099ceba018d9575ac21213e966 (patch)
treed5a39d270e8a6cda58f91d56ca3dde4907a1354c
parentd52b9f82ca2f1f1e91ac2be812218f9cbdf0459a (diff)
battery: initialize colorful_output to false
-rw-r--r--src/print_battery_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_battery_info.c b/src/print_battery_info.c
index d4b091b..95237d9 100644
--- a/src/print_battery_info.c
+++ b/src/print_battery_info.c
@@ -42,7 +42,7 @@ void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char
const char *walk, *last;
char *outwalk = buffer;
bool watt_as_unit;
- bool colorful_output;
+ bool colorful_output = false;
int full_design = -1,
remaining = -1,
present_rate = -1,