Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at mate_setup.c:108

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

new_gopcfg

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/mate/mate_setup.c)expand/collapse
Show more  
 81  extern mate_cfg_gop* new_gopcfg(gchar* name) {
 82          mate_cfg_gop* cfg = g_malloc(sizeof(mate_cfg_gop));
 83           
 84          cfg->name = g_strdup(name);
 85          cfg->last_id = 0;
 86           
 87          cfg->items = g_hash_table_new(g_direct_hash,g_direct_equal);
 88          cfg->transforms = NULL;
 89           
 90          cfg->extra = new_avpl("extra");
 91           
 92          cfg->hfid = -1;
 93           
 94          cfg->ett = -1;
 95          cfg->ett_attr = -1;
 96          cfg->ett_times = -1;
 97          cfg->ett_children = -1;
 98   
 99          cfg->hfid_start_time = -1;
 100          cfg->hfid_stop_time = -1;
 101          cfg->hfid_last_time = -1;
 102   
 103          cfg->hfid_gop_pdu = -1;
 104          cfg->hfid_gop_num_pdus = -1;
 105   
 106          cfg->my_hfids = g_hash_table_new(g_str_hash,g_str_equal);
 107   
 108          cfg->gop_index = g_hash_table_new(g_str_hash,g_str_equal);
 109          cfg->gog_index = g_hash_table_new(g_str_hash,g_str_equal);
 110   
 111          g_hash_table_insert(matecfg->gopcfgs,(gpointer) cfg->name, (gpointer) cfg);
 112   
 113          return cfg;
 114  }
Show more  




Change Warning 12104.30084 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: