(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-tnef.c) |
| |
| 417 | | | if((padding = (4 - tag_length % 4)) != 4) { |
| 418 | | | proto_tree_add_item(tag_tree, hf_tnef_property_padding, tvb, offset, padding, TRUE); |
| 419 | | | offset += padding; |
| 420 | | | } |
| 421 | | | |
| 422 | | | proto_item_append_text(prop_item, " [Named Property: %s]", name_string); |
| 423 | | | |
| 424 | | | } |
| 425 | | | } |
| 426 | | | |
| 427 | | | switch(tag) { |
Empty switch Statement
Body of switch has no effect. This warning could be triggered if: - the body contains no code, or
- all cases share the same code, or
- the body is removed by the preprocessor, or
- all the macros used in the body expand to nothing.
|
|
| 428 | | | |
| 429 | | | default: |
| 430 | | | |
| 431 | | | switch(tag & 0x0000ffff) { |
| 432 | | | case PT_I2: |
| 433 | | | offset = PIDL_dissect_uint16(tvb, offset, pinfo, prop_tree, drep, hf_tnef_PropValue_i, 0); |
| 434 | | | break; |
| 435 | | | case PT_LONG: |
| 436 | | | offset = PIDL_dissect_uint32(tvb, offset, pinfo, prop_tree, drep, hf_tnef_PropValue_l, 0); |
| 437 | | | break; |
| |