From 360d86da80b79445fa43b29369d918d1fd5759ac Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Mon, 29 Aug 2016 13:11:37 -0400 Subject: [PATCH] Fix uninitialized variable warning --- include/fc/reflect/reflect.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fc/reflect/reflect.hpp b/include/fc/reflect/reflect.hpp index 075ce80..c9f5405 100644 --- a/include/fc/reflect/reflect.hpp +++ b/include/fc/reflect/reflect.hpp @@ -161,7 +161,7 @@ template<> struct reflector { \ } \ static ENUM from_string( const char* s ) { \ BOOST_PP_SEQ_FOR_EACH( FC_REFLECT_ENUM_FROM_STRING, ENUM, FIELDS ) \ - int64_t i; \ + int64_t i = 0; \ try \ { \ i = boost::lexical_cast(s); \