Initialise the uninitialised.
This commit is contained in:
parent
a9a649d280
commit
9a8277dd07
4
main.c
4
main.c
@ -18,8 +18,8 @@ void print_version(void);
|
|||||||
void print_usage(void);
|
void print_usage(void);
|
||||||
|
|
||||||
int main(const int argc, const char *const *const argv) {
|
int main(const int argc, const char *const *const argv) {
|
||||||
price_t price;
|
price_t price = 0;
|
||||||
wattage_t wattage;
|
wattage_t wattage = 0;
|
||||||
interval_t interval = 0;
|
interval_t interval = 0;
|
||||||
|
|
||||||
switch (parse_arguments(argc, argv, &price, &wattage, &interval)) {
|
switch (parse_arguments(argc, argv, &price, &wattage, &interval)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user