aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-01-03 17:53:42 +0100
committerGuy Harris <guy@alum.mit.edu>2019-01-03 23:39:43 +0000
commitb67b47558d1bfff404e483156a98ac3c50433609 (patch)
tree7acdae1f163e854b08c37c9d8144b6dcc7a46725 /epan/prefs.c
parent58b71c754cdf829f0a33bad94d2fcde6e12c0342 (diff)
epan: remove redundant casts.
Found by clang-tidy. Change-Id: Iaf6cf84c33b03ddfcd39a333b49f4987002afa56 Reviewed-on: https://code.wireshark.org/review/31338 Petri-Dish: Dario Lombardo <lomato@gmail.com> Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 3c7a85f868..0f67b3ffd6 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -302,7 +302,7 @@ static void
free_string_like_preference(pref_t *pref)
{
DIAG_OFF(cast-qual)
- g_free((char *)*pref->varp.string);
+ g_free(*pref->varp.string);
DIAG_ON(cast-qual)
*pref->varp.string = NULL;
g_free(pref->default_val.string);