mirror of https://github.com/PentHertz/srsLTE.git
fix uninit var in cfg parser
This commit is contained in:
parent
6a9c4d94b0
commit
2195012dc1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue