(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/mate/mate_setup.c) |
| |
| 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-> = new_avpl(""); |
| 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); |
Useless Assignment
This code assigns the variable the same value it already had. |
|
| 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 | | | } |
| |