(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c) |
| |
| 499 | | | static void tcp_graph_cb (GtkWidget *w _U_, gpointer data, guint callback_action _U_) |
| 500 | | | { |
| 501 | | | struct segment current; |
| 502 | | | struct graph *g; |
| 503 | | | struct *thdr; |
| 504 | | | |
| 505 | | | guint graph_type = GPOINTER_TO_INT(data); |
| 506 | | | |
| 507 | | | debug(DBS_FENTRY) puts ("tcp_graph_cb()"); |
| 508 | | | |
| 509 | | | if (! (g = graph_new())) |
| 510 | | | return; |
Unreachable Control Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 511 | | | |
| 512 | | | refnum++; |
| 513 | | | graph_initialize_values (g); |
| 514 | | | |
| 515 | | | g->type = graph_type; |
| 516 | | | if (!(thdr=select_tcpip_session (&cfile, ¤t))) { |
| 517 | | | return; |
| 518 | | | } |
| 519 | | | |
| 520 | | | graph_segment_list_get(g); |
| 521 | | | create_gui(g); |
| 522 | | | |
| 523 | | | graph_init_sequence(g); |
| 524 | | | } |
| |