aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q931.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-22 15:18:56 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-22 15:18:56 +0000
commit3ed50e1ae72995ccdb040df9add47182173a5210 (patch)
treee9a2605576b72eceff34042e9111f9d79aff989f /epan/dissectors/packet-q931.c
parent42f80d7478a1546d9e1b0da5fa7d2e73dc152bf9 (diff)
Don't pass a null format string to val_to_str().
svn path=/trunk/; revision=14167
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;