From 455eba820b30bbcc260f257af8f4819700790884 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 4 Jan 2019 20:06:00 +0100 Subject: [PATCH] Initialize some variables. They would have never been left unitialized, but the compiler didn't know that. --- src/c_interface.cpp | 2 +- src/checks.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c_interface.cpp b/src/c_interface.cpp index d904ee8..12b1426 100644 --- a/src/c_interface.cpp +++ b/src/c_interface.cpp @@ -33,7 +33,7 @@ bool identiconpp_setup(const uint8_t columns, const uint8_t rows, const uint8_t foreground_len, const uint8_t padding[2]) { - Identiconpp::algorithm algo; + Identiconpp::algorithm algo = Identiconpp::algorithm::ltr_symmetric; switch (type) { case identiconpp_ltr_symmetric: diff --git a/src/checks.cpp b/src/checks.cpp index bbf424b..99b9984 100644 --- a/src/checks.cpp +++ b/src/checks.cpp @@ -31,8 +31,8 @@ void Identiconpp::check_entropy(const string &digest, algorithm type) ); } - uint16_t entropy_provided; - uint16_t entropy_required; + uint16_t entropy_provided = 0; + uint16_t entropy_required = 0; switch (type) { case algorithm::ltr_symmetric: