diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-05-18 16:05:37 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-05-18 16:05:37 +0000 |
commit | 1eeb3442b205e939bafaeabd33b1816acb57708b (patch) | |
tree | 2ed96e0cc06487b22996f6cd3d799c903d859d1f /epan | |
parent | 7575b52df701613bcddbf4847ab049e0ca0a69ad (diff) |
Use val_to_str() instead of match_strval() to ensure we get a non-NULL result to pass to proto_tree_add*().
svn path=/trunk/; revision=32880
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-gsmtap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsmtap.c b/epan/dissectors/packet-gsmtap.c index ce330bc42e..91d0e7b591 100644 --- a/epan/dissectors/packet-gsmtap.c +++ b/epan/dissectors/packet-gsmtap.c @@ -264,7 +264,7 @@ dissect_gsmtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) arfcn & GSMTAP_ARFCN_MASK, arfcn & GSMTAP_ARFCN_F_UPLINK ? "Uplink" : "Downlink", tvb_get_guint8(tvb, offset+3), - match_strval(tvb_get_guint8(tvb, offset+12), gsmtap_channels), + val_to_str(tvb_get_guint8(tvb, offset+12), gsmtap_channels, "Unknown: %d"), tvb_get_guint8(tvb, offset+14)); gsmtap_tree = proto_item_add_subtree(ti, ett_gsmtap); proto_tree_add_item(gsmtap_tree, hf_gsmtap_version, |