From 7bd23700de58c74728ada0a44aaed9fff87b4f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 10 Apr 2021 13:26:46 +0200 Subject: irc: remove dead assignment on variable pos_message --- src/plugins/irc/irc-info.c | 4 ++-- 1 file 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) { -- cgit v1.2.3