diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-11-25 02:20:41 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-11-25 02:20:41 +0000 |
commit | cf82b5da1f1052c0c4fff2108990ca2a22613beb (patch) | |
tree | f1afb320d32616c3b5e7bc917cdd2b2cae6369b5 | |
parent | f728752c0913716a8d2c9039314a230cb422570e (diff) |
Set an initial value to make gcc 4.1.3 20070929 (prerelease) on Ubuntu happy.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23580 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dissectors/packet-wps.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-wps.c b/epan/dissectors/packet-wps.c index 1ff1a0875c..2bc1dfee63 100644 --- a/epan/dissectors/packet-wps.c +++ b/epan/dissectors/packet-wps.c @@ -644,7 +644,7 @@ dissect_wps_tlvs(proto_tree *eap_tree, tvbuff_t *tvb, int offset, tlv_len = tvb_get_ntohs(tvb, offset+2); /* TOP Node for each TLV-item */ - tlv_item = proto_tree_add_text(eap_tree, tvb, offset, tlv_len+4, ""); + tlv_item = proto_tree_add_text(eap_tree, tvb, offset, tlv_len+4, "Unknown Type (0x%04x)", tlv_type); tlv_root = proto_item_add_subtree(tlv_item, ett_wps_tlv); /* analog to Tagged parameters in 802.11 */ @@ -1246,9 +1246,8 @@ dissect_wps_tlvs(proto_tree *eap_tree, tvbuff_t *tvb, int offset, header_field_info* hf_info = NULL; char* fmt = NULL; - proto_item_append_text(tlv_item, - "%s", - val_to_str(tlv_type, eapwps_tlv_types, "Unknown (0x%04x)")); + proto_item_set_text(tlv_item, "%s", + val_to_str(tlv_type, eapwps_tlv_types, "Unknown (0x%04x)")); /* Rendered strings for value. Thanks to Stig Bjorlykke */ hf_info = proto_registrar_get_nth(hfindex); |