mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-3331 warning: ‘etype’ may be used uninitialized in this function
Client: C_glib Patch: Simon South
This commit is contained in:
parent
8c7b03c2a5
commit
804504b79a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user