(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/main.c) |
| |
| 450 | | | selected_ptree_ref_cb(GtkWidget *widget _U_, gpointer data _U_) |
| 451 | | | { |
| 452 | | | int field_id; |
| 453 | | | const gchar *proto_abbrev; |
| 454 | | | gpointer dialog; |
| 455 | | | |
| 456 | | | |
| 457 | | | if (cfile.finfo_selected) { |
| 458 | | | |
| 459 | | | |
| 460 | | | field_id = cfile.finfo_selected->hfinfo->id; |
| 461 | | | |
| 462 | | | if(!proto_registrar_is_protocol(field_id)) { |
| 463 | | | field_id = proto_registrar_get_parent(cfile.finfo_selected->hfinfo->id); |
| 464 | | | } |
| 465 | | | |
| 466 | | | proto_abbrev = proto_registrar_get_abbrev(field_id); |
| 467 | | | |
| 468 | | | if (!proto_is_private(field_id)) { |
| 469 | | | |
| 470 | | | dialog = simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTNS_OK_CANCEL, |
| 471 | | | "%sOpen Wireshark filter reference page of protocol \"%s\"?%s\n" |
| 472 | | | "\n" |
| 473 | | | "This will open the \"%s\" related Wireshark filter reference page in your Web browser.\n" |
| 474 | | | "\n", |
| 475 | | | simple_dialog_primary_start(), proto_abbrev, simple_dialog_primary_end(), proto_abbrev); |
| 476 | | | simple_dialog_set_cb(dialog, selected_ptree_ref_answered_cb, (gpointer)proto_abbrev); |
| 477 | | | } else { |
| 478 | | | |
| 479 | | | dialog = simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, |
Unused Value
The value assigned to dialog is never subsequently used on any execution path. |
|
| 480 | | | "%sCan't open Wireshark filter reference page of protocol \"%s\"%s\n" |
| 481 | | | "\n" |
| 482 | | | "This would open the \"%s\" related Wireshark filter reference page in your Web browser.\n" |
| 483 | | | "\n" |
| 484 | | | "Since this is a private protocol, such information is not available on " |
| 485 | | | "a public website. Therefore this filter entry is blocked.\n" |
| 486 | | | "\n" |
| 487 | | | "Sorry for the inconvenience.\n", |
| 488 | | | simple_dialog_primary_start(), proto_abbrev, simple_dialog_primary_end(), proto_abbrev); |
| 489 | | | } |
| 490 | | | } |
| 491 | | | } |
| |