aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/dfunctions.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-06-19 00:31:30 +0100
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-06-20 17:29:57 +0000
commit0615ba6317466b281769db4848704f250ff494b7 (patch)
tree9c6fdfa8074dfaa496bca1f4886e3f8cd7b5616c /epan/dfilter/dfunctions.c
parent0cadfff04aab0fde9999b0b7cd14806a693a0a6e (diff)
ftypes: Make accessor functions type safe
Diffstat (limited to 'epan/dfilter/dfunctions.c')
-rw-r--r--epan/dfilter/dfunctions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dfilter/dfunctions.c b/epan/dfilter/dfunctions.c
index 0c5234a201..cdba3e2c3a 100644
--- a/epan/dfilter/dfunctions.c
+++ b/epan/dfilter/dfunctions.c
@@ -42,7 +42,7 @@ string_walk(GSList *args, guint32 arg_count, GSList **retval, gchar(*conv_func)(
arg_fvalue = (fvalue_t *)arg1->data;
/* XXX - it would be nice to handle FT_TVBUFF, too */
if (IS_FT_STRING(fvalue_type_ftenum(arg_fvalue))) {
- s = (char *)wmem_strdup(NULL, (gchar *)fvalue_get(arg_fvalue));
+ s = wmem_strdup(NULL, fvalue_get_string(arg_fvalue));
for (c = s; *c; c++) {
*c = conv_func(*c);
}