aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2021-02-09 20:31:44 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-02-11 21:56:37 +0000
commit6fc94ac462f51212ceecd8d8103645f7c6582fb5 (patch)
tree74fb2877bd00c15a0c0d3a2d49d2c4ec0751165d /extcap.c
parentf2888ecf3858efe3da5feba0c268c126366959a6 (diff)
extcap: Fix Dead Store found by Clang Analyzer
extcap.c:876:26: warning: Although the value stored to 'pref' is used in the enclosing expression, the value is never actually read from 'pref'
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extcap.c b/extcap.c
index 21c1b14b0c..485e09a3fa 100644
--- a/extcap.c
+++ b/extcap.c
@@ -866,14 +866,12 @@ static gboolean cb_preference(extcap_callback_info_t cb_info)
if (arg->save)
{
- struct preference *pref = NULL;
-
gchar *pref_name = g_regex_replace(regex_name, arg->call, strlen(arg->call), 0, "", (GRegexMatchFlags) 0, NULL);
gchar *ifname_underscore = g_regex_replace(regex_ifname, cb_info.ifname, strlen(cb_info.ifname), 0, "_", (GRegexMatchFlags) 0, NULL);
gchar *ifname_lowercase = g_ascii_strdown(ifname_underscore, -1);
gchar *pref_ifname = g_strconcat(ifname_lowercase, ".", pref_name, NULL);
- if ((pref = prefs_find_preference(dev_module, pref_ifname)) == NULL)
+ if (prefs_find_preference(dev_module, pref_ifname) == NULL)
{
char *pref_name_for_prefs;
char *pref_title = wmem_strdup(wmem_epan_scope(), arg->display);