THRIFT-3331 warning: ‘etype’ may be used uninitialized in this function

Client: C_glib
Patch: Simon South
This commit is contained in:
Jens Geyer 2015-09-23 22:01:06 +02:00
parent 8c7b03c2a5
commit 804504b79a

View File

@ -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();