diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-02-17 13:53:31 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-02-17 21:54:03 +0000 |
commit | 2530b75e1da0f715a6b712ee9b12beb6e7d604e4 (patch) | |
tree | 0bf48f5bfc89f46c46177db5692a6820898df4c2 | |
parent | 55042dc15b9b6611c01f8eacf193d2fb6556afc9 (diff) |
Don't gratuitously cast away constness.
Change-Id: I5c80e50c524db6ee80e1529af447db9a26e02f48
Reviewed-on: https://code.wireshark.org/review/25849
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | epan/dissectors/packet-thread.c | 4 |
1 files 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)) { |