Initialize some variables.

They would have never been left unitialized, but the compiler didn't
know that.
This commit is contained in:
tastytea 2019-01-04 20:06:00 +01:00
parent ccbdb5c582
commit 455eba820b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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: