The boolean flag 'watt_as_unit' may be used without being initialized if the
configured battery path does not contain expected statistics (for example if
it is misconfigured and points to AC adapter info or simply an unrelated file).
Even though it does not cause ill effects, it causes a warning (true positive)
when running i3status under Valgrind. Initialize the variable to make code
well-defined.
char consumptionbuf[256];
const char *walk, *last;
char *outwalk = buffer;
- bool watt_as_unit;
+ bool watt_as_unit = false;
bool colorful_output = false;
int full_design = -1,
remaining = -1,