From 2530b75e1da0f715a6b712ee9b12beb6e7d604e4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 17 Feb 2018 13:53:31 -0800 Subject: Don't gratuitously cast away constness. Change-Id: I5c80e50c524db6ee80e1529af447db9a26e02f48 Reviewed-on: https://code.wireshark.org/review/25849 Reviewed-by: Guy Harris --- epan/dissectors/packet-thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-thread.c b/epan/dissectors/packet-thread.c index 48c19a8d22..2cb836ded1 100644 --- a/epan/dissectors/packet-thread.c +++ b/epan/dissectors/packet-thread.c @@ -2103,12 +2103,12 @@ static int dissect_thread_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { coap_info *coinfo; - gchar *uri; + const gchar *uri; gchar **tokens; /* Obtain the CoAP info */ coinfo = (coap_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_coap, 0); - uri = (gchar *)wmem_strbuf_get_str(coinfo->uri_str_strbuf); + uri = wmem_strbuf_get_str(coinfo->uri_str_strbuf); tokens = wmem_strsplit(wmem_packet_scope(), uri, "/", 3); if ((tokens[0] != NULL) && (tokens[1] != NULL)) { -- cgit v1.2.3