(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/stats_tree_stat.c) |
| |
| 77 | | | setup_gtk_node_pr(stat_node* node) |
| 78 | | | { |
| 79 | | | GtkTreeIter* parent = NULL; |
| 80 | | | |
| 81 | | | node->pr = g_malloc(sizeof(st_node_pres)); |
| 82 | | | |
| 83 | | | if (node->st->pr->store) { |
| 84 | | | node->pr->iter = g_malloc0(sizeof(GtkTreeIter)); |
Useless Assignment
This code assigns the variable the same value it already had. |
|
| 85 | | | |
| 86 | | | if ( node->parent && node->parent->pr ) { |
| 87 | | | parent = node->parent->pr->iter; |
| 88 | | | } |
| 89 | | | gtk_tree_store_append (node->st->pr->store, node->pr->iter, parent); |
| 90 | | | gtk_tree_store_set(node->st->pr->store, node->pr->iter, TITLE_COLUMN, node->name, RATE_COLUMN, "", COUNT_COLUMN, "", -1); |
| 91 | | | } |
| 92 | | | } |
| |