Initialize some variables.
They would have never been left unitialized, but the compiler didn't know that.
This commit is contained in:
parent
ccbdb5c582
commit
455eba820b
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue