diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-07-22 18:27:13 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-07-22 18:27:13 +0000 |
commit | 67559b7dfe92fcc7171eefb33688652fa2390fc0 (patch) | |
tree | 90f4a4a1b9d3712879d8499fe3f1b48d8e648fe6 /epan/dissectors | |
parent | 670f7b46f80601d2d24896873c4e06bae634c2f3 (diff) |
Add NULL termination element to value_string arrays
svn path=/trunk/; revision=25793
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-2dparityfec.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-ansi_a.c | 3 | ||||
-rw-r--r-- | epan/dissectors/packet-rsvp.c | 3 | ||||
-rw-r--r-- | epan/dissectors/packet-wps.c | 1 |
4 files changed, 8 insertions, 3 deletions
diff --git a/epan/dissectors/packet-2dparityfec.c b/epan/dissectors/packet-2dparityfec.c index 728cfdc288..7f6c0dcb6b 100644 --- a/epan/dissectors/packet-2dparityfec.c +++ b/epan/dissectors/packet-2dparityfec.c @@ -96,7 +96,9 @@ static int hf_2dparityfec_payload = -1; static const value_string fec_type_names[] = { {0, "XOR"}, {1, "Hamming"}, - {2, "Reed-Solomon"}}; + {2, "Reed-Solomon"}, + {0, NULL} +}; static void dissect_2dparityfec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index 9f28f5e319..83e3a9e1b4 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -5222,7 +5222,8 @@ static const value_string ansi_a_adds_strings[] = { { ADDS_APP_SDB, "SDB" }, { ADDS_APP_HRPD, "HRPD" }, { ADDS_APP_EXT_INTL, "EXT_INTL" }, - { ADDS_APP_EXT, "EXT" } + { ADDS_APP_EXT, "EXT" }, + { 0, NULL} }; /* diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c index 1fcb00ad3b..26a4aea65b 100644 --- a/epan/dissectors/packet-rsvp.c +++ b/epan/dissectors/packet-rsvp.c @@ -4528,7 +4528,8 @@ dissect_rsvp_lsp_tunnel_if_id (proto_tree *ti, proto_tree *rsvp_object_tree, {0, "LSP is FA (MPLS-TE topology advertisement only)"}, {1, "LSP is RA (IP network advertisement only)"}, {2, "LSP is RA (both IP and MPLS-TE topology advertisement)"}, - {3, "LSP is to be used as a virtual local link"} + {3, "LSP is to be used as a virtual local link"}, + {0, NULL} }; proto_item_set_text(ti, "LSP INTERFACE-ID: "); diff --git a/epan/dissectors/packet-wps.c b/epan/dissectors/packet-wps.c index 2dd68e6f7d..ce6bbc0d53 100644 --- a/epan/dissectors/packet-wps.c +++ b/epan/dissectors/packet-wps.c @@ -523,6 +523,7 @@ static const value_string eapwps_tlv_configuration_error_vals[] = { static const value_string eapwps_tlv_connection_type_vals[] = { { EAPWPS_CONNTYPE_ESS, "ESS" }, { EAPWPS_CONNTYPE_IBSS, "IBSS" }, + { 0, NULL} }; #define EAPWPS_DEVPW_PIN 0x0 |