(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ncp2222.inc) |
| |
| 2081 | | | static proto_item* |
| 2082 | | | padd_date(ptvcursor_t *ptvc, const ptvc_record *rec) |
| 2083 | | | { |
| 2084 | | | proto_item *item; |
| 2085 | | | nw_date_t nw_date; |
| 2086 | | | gint offset; |
| 2087 | | | |
| 2088 | | | offset = ptvcursor_current_offset(ptvc); |
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 2089 | | | |
| 2090 | | | item = ptvcursor_add(ptvc, *rec->hf_ptr, |
| 2091 | | | rec->length, rec->endianness); |
| 2092 | | | |
| 2093 | | | if (item) { |
| 2094 | | | uint_to_nwdate(get_item_value(item), &nw_date); |
| 2095 | | | |
| 2096 | | | proto_item_set_text(item, "%s", get_item_name(item)); |
| 2097 | | | proto_item_append_text(item, ": %04u/%02u/%02u", |
| 2098 | | | nw_date.year, nw_date.month, nw_date.day); |
| 2099 | | | } |
| 2100 | | | return item; |
| 2101 | | | } |
| |