From 2195012dc1202a4ea3d669cf38f6a475e89ab2b2 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 11 Nov 2019 12:17:39 +0100 Subject: [PATCH] fix uninit var in cfg parser --- srsenb/hdr/parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/hdr/parser.h b/srsenb/hdr/parser.h index 993bfeb40..7bd8cf8b2 100644 --- a/srsenb/hdr/parser.h +++ b/srsenb/hdr/parser.h @@ -430,7 +430,7 @@ template 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) {