diff --git a/tests/stringutility_ut.cpp b/tests/stringutility_ut.cpp index 0536958b0..c72ecdc63 100644 --- a/tests/stringutility_ut.cpp +++ b/tests/stringutility_ut.cpp @@ -8,7 +8,7 @@ TEST(STRINGUTILITY, cast_int) { - int i; + int i = 0; EXPECT_NO_THROW(swss::lexical_convert("123", i)); EXPECT_EQ(i, 123); @@ -39,7 +39,7 @@ TEST(STRINGUTILITY, cast_alpha_bool) TEST(STRINGUTILITY, cast_mix) { - int i; + int i = 0; swss::AlphaBoolean b; std::string s;