aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/irc/irc-info.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-04-10 13:26:46 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-04-10 13:26:46 +0200
commit7bd23700de58c74728ada0a44aaed9fff87b4f6c (patch)
treeedeec23e36c16c4d713a2a5fe6f47f685c5d42b2 /src/plugins/irc/irc-info.c
parenttrigger: remove useless test (diff)
downloadweechat-7bd23700de58c74728ada0a44aaed9fff87b4f6c.tar.xz
weechat-7bd23700de58c74728ada0a44aaed9fff87b4f6c.zip
irc: remove dead assignment on variable pos_message
Diffstat (limited to 'src/plugins/irc/irc-info.c')
-rw-r--r--src/plugins/irc/irc-info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c
index 96974fcbc..31f5cc412 100644
--- a/src/plugins/irc/irc-info.c
+++ b/src/plugins/irc/irc-info.c
@@ -421,13 +421,13 @@ irc_info_info_irc_is_message_ignored_cb (const void *pointer, void *data,
if (!arguments || !arguments[0])
return NULL;
- ptr_server = NULL;
- pos_message = arguments;
pos_comma = strchr (arguments, ',');
if (!pos_comma)
return NULL;
pos_message = pos_comma + 1;
+
+ ptr_server = NULL;
server = weechat_strndup (arguments, pos_comma - arguments);
if (server)
{