(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ncp2222.inc) |
| |
| 2103 | | | static proto_item* |
| 2104 | | | padd_time(ptvcursor_t *ptvc, const ptvc_record *rec) |
| 2105 | | | { |
| 2106 | | | proto_item *item; |
| 2107 | | | nw_time_t nw_time; |
| 2108 | | | gint offset; |
| 2109 | | | |
| 2110 | | | offset = ptvcursor_current_offset(ptvc); |
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 2111 | | | |
| 2112 | | | item = ptvcursor_add(ptvc, *rec->hf_ptr, |
| 2113 | | | rec->length, rec->endianness); |
| 2114 | | | |
| 2115 | | | if (item) { |
| 2116 | | | uint_to_nwtime(get_item_value(item), &nw_time); |
| 2117 | | | |
| 2118 | | | proto_item_set_text(item, "%s", get_item_name(item)); |
| 2119 | | | proto_item_append_text(item, ": %02u:%02u:%02u", |
| 2120 | | | nw_time.hour, nw_time.minute, nw_time.second); |
| 2121 | | | } |
| 2122 | | | return item; |
| 2123 | | | } |
| |