Repository: thrift Updated Branches: refs/heads/master 8c7b03c2a -> 804504b79
THRIFT-3331 warning: âetypeâ may be used uninitialized in this function Client: C_glib Patch: Simon South Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/804504b7 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/804504b7 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/804504b7 Branch: refs/heads/master Commit: 804504b79a17c6e3e3f59218679288102a4e33aa Parents: 8c7b03c Author: Jens Geyer <[email protected]> Authored: Wed Sep 23 22:01:06 2015 +0200 Committer: Jens Geyer <[email protected]> Committed: Wed Sep 23 22:01:06 2015 +0200 ---------------------------------------------------------------------- compiler/cpp/src/generate/t_c_glib_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/804504b7/compiler/cpp/src/generate/t_c_glib_generator.cc ---------------------------------------------------------------------- diff --git a/compiler/cpp/src/generate/t_c_glib_generator.cc b/compiler/cpp/src/generate/t_c_glib_generator.cc index 3971fc2..47aa4d2 100644 --- a/compiler/cpp/src/generate/t_c_glib_generator.cc +++ b/compiler/cpp/src/generate/t_c_glib_generator.cc @@ -3096,7 +3096,7 @@ void t_c_glib_generator::generate_object(t_struct* tstruct) { } else if (t->is_container()) { string name = (*m_iter)->get_name(); string init_function; - t_type* etype; + t_type* etype = NULL; if (t->is_map()) { t_type* key = ((t_map*)t)->get_key_type();
