fix uninit var in cfg parser

This commit is contained in:
Andre Puschmann 2019-11-11 12:17:39 +01:00
parent 6a9c4d94b0
commit 2195012dc1
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ template <typename EnumType>
int number_to_enum(EnumType& enum_val, Setting& root)
{
if (root.isNumber()) {
typename EnumType::number_type val;
typename EnumType::number_type val = 0;
if (root.getType() == Setting::TypeInt64) {
val = (long int)root;
} else if (root.getType() == Setting::TypeInt) {