aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q931.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-22 15:18:56 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-22 15:18:56 +0000
commit62d150a3b677e9c9e73133770e9bab5abdc6959d (patch)
treee9a2605576b72eceff34042e9111f9d79aff989f /epan/dissectors/packet-q931.c
parentdf8dc9f05921d2e87a2c391a3b08ef827e9fa01f (diff)
Don't pass a null format string to val_to_str().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14167 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-q931.c')
-rw-r--r--epan/dissectors/packet-q931.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c
index 513c1807a4..53e0487657 100644
--- a/epan/dissectors/packet-q931.c
+++ b/epan/dissectors/packet-q931.c
@@ -1464,7 +1464,7 @@ dissect_q931_channel_identification_ie(tvbuff_t *tvb, int offset, int len,
proto_tree_add_text(tree, tvb, offset, 1,
"Channel selection: %s",
val_to_str(octet & 0x03, q931_basic_channel_selection_vals,
- NULL));
+ "Unknown (0x%02X)"));
}
offset += 1;
len -= 1;
@@ -1931,7 +1931,7 @@ dissect_q931_pl_binary_parameters_ie(tvbuff_t *tvb, int offset, int len,
octet = tvb_get_guint8(tvb, offset);
proto_tree_add_text(tree, tvb, offset, 1,
"Fast select: %s",
- val_to_str(octet & 0x18, q931_fast_selected_vals, NULL));
+ val_to_str(octet & 0x18, q931_fast_selected_vals, "Unknown (0x%02X)"));
proto_tree_add_text(tree, tvb, offset, 1,
"%s",
(octet & 0x04) ? "No request/request denied" :
@@ -2178,7 +2178,7 @@ dissect_q931_party_subaddr_ie(tvbuff_t *tvb, int offset, int len,
proto_tree_add_text(tree, tvb, offset, 1,
"Odd/even indicator: %s",
val_to_str(octet & 0x10, q931_odd_even_indicator_vals,
- NULL));
+ "Unknown (0x%02X)"));
offset += 1;
len -= 1;