From 9a8277dd0715b4901bd2aab1f0dbd20009d391ce Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 27 Apr 2024 02:15:34 +0400 Subject: [PATCH] Initialise the uninitialised. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index b8711e4..d48ba04 100644 --- a/main.c +++ b/main.c @@ -18,8 +18,8 @@ void print_version(void); void print_usage(void); int main(const int argc, const char *const *const argv) { - price_t price; - wattage_t wattage; + price_t price = 0; + wattage_t wattage = 0; interval_t interval = 0; switch (parse_arguments(argc, argv, &price, &wattage, &interval)) {