(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_byte_graph_dlg.c) |
| |
| 1127 | | | gtk_sctpgraph_init(struct sctp_udata *u_data) |
| 1128 | | | { |
| 1129 | | | sctp_graph_t *io; |
| 1130 | | | gint dir; |
| 1131 | | | sctp_min_max_t* tmp_minmax; |
| 1132 | | | |
| 1133 | | | io=g_malloc(sizeof(sctp_graph_t)); |
| 1134 | | | io->needs_redraw=TRUE; |
| 1135 | | | io->x_interval=1000; |
| 1136 | | | io->window=NULL; |
| 1137 | | | io->draw_area=NULL; |
| 1138 | | | io->pixmap=NULL; |
| 1139 | | | io->pixmap_width=800; |
| 1140 | | | io->pixmap_height=600; |
| 1141 | | | io->graph_type=0; |
| 1142 | | | dir=u_data->dir-1; |
Unused Value
The value assigned to dir is never subsequently used on any execution path. |
|
| 1143 | | | u_data->io=io; |
| 1144 | | | |
| 1145 | | | |
| 1146 | | | u_data->io->x1_tmp_sec=u_data->assoc->min_secs; |
| 1147 | | | u_data->io->x1_tmp_usec=u_data->assoc->min_usecs; |
| 1148 | | | u_data->io->x2_tmp_sec=u_data->assoc->max_secs; |
| 1149 | | | u_data->io->x2_tmp_usec=u_data->assoc->max_usecs; |
| 1150 | | | u_data->io->tmp_min_tsn1=0; |
| 1151 | | | u_data->io->tmp_max_tsn1=u_data->assoc->max_bytes1; |
| 1152 | | | u_data->io->tmp_min_tsn2=0; |
| 1153 | | | u_data->io->tmp_max_tsn2=u_data->assoc->max_bytes2; |
| 1154 | | | u_data->io->tmp=FALSE; |
| 1155 | | | tmp_minmax = g_malloc(sizeof(sctp_min_max_t)); |
| 1156 | | | tmp_minmax->tmp_min_secs = u_data->assoc->min_secs; |
| 1157 | | | tmp_minmax->tmp_min_usecs=u_data->assoc->min_usecs; |
| 1158 | | | tmp_minmax->tmp_max_secs=u_data->assoc->max_secs; |
| 1159 | | | tmp_minmax->tmp_max_usecs=u_data->assoc->max_usecs; |
| 1160 | | | tmp_minmax->tmp_min_tsn2=u_data->io->tmp_min_tsn2; |
| 1161 | | | tmp_minmax->tmp_min_tsn1=u_data->io->tmp_min_tsn1; |
| 1162 | | | tmp_minmax->tmp_max_tsn1=u_data->io->tmp_max_tsn1; |
| 1163 | | | tmp_minmax->tmp_max_tsn2=u_data->io->tmp_max_tsn2; |
| 1164 | | | u_data->assoc->min_max = g_slist_prepend(u_data->assoc->min_max, tmp_minmax); |
| 1165 | | | |
| 1166 | | | |
| 1167 | | | init_sctp_graph_window(u_data); |
| 1168 | | | sctp_graph_redraw(u_data); |
| 1169 | | | } |
| |