(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_chunk_stat_dlg.c) |
| |
| 726 | | | void sctp_chunk_stat_dlg_show(unsigned int direction, struct sctp_analyse* userdata) |
| 727 | | | { |
| 728 | | | struct sctp_udata *u_data; |
| 729 | | | |
| 730 | | | u_data=g_malloc(sizeof(struct sctp_udata)); |
| 731 | | | u_data->assoc=g_malloc(sizeof(sctp_assoc_info_t)); |
| 732 | | | u_data->assoc=userdata->assoc; |
| 733 | | | u_data->io=NULL; |
| 734 | | | u_data->parent = userdata; |
| 735 | | | |
| 736 | | | if (selected_stream==NULL) |
| 737 | | | selected_stream=g_malloc(sizeof(sctp_assoc_info_t)); |
| 738 | | | selected_stream=u_data->assoc; |
| 739 | | | selected_stream->addr_chunk_count=u_data->assoc->addr_chunk_count; |
Useless Assignment
This code assigns the variable the same value it already had. |
|
| 740 | | | |
| 741 | | | set_child(u_data, u_data->parent); |
| 742 | | | increase_childcount(u_data->parent); |
| 743 | | | gtk_sctpstat_dlg(u_data, direction); |
| 744 | | | sctp_chunk_stat_dlg_update(u_data,direction); |
| 745 | | | } |
| |