summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-redirect.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:07:02 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 08:53:22 +0200
commit9a5a1fb300d30630f62cb4707ee6be6937f3467e (patch)
tree3eb560f6c64641ba3ae22d059ffbb020b0451daf /src/plugins/irc/irc-redirect.c
parentf11c7c1bf46d494a5a0df616ed0dcc11c64505e1 (diff)
downloadweechat-9a5a1fb300d30630f62cb4707ee6be6937f3467e.zip
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865)
Diffstat (limited to 'src/plugins/irc/irc-redirect.c')
-rw-r--r--src/plugins/irc/irc-redirect.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-redirect.c b/src/plugins/irc/irc-redirect.c
index 456c03581..0ebdc61d8 100644
--- a/src/plugins/irc/irc-redirect.c
+++ b/src/plugins/irc/irc-redirect.c
@@ -923,9 +923,7 @@ irc_redirect_message (struct t_irc_server *server, const char *message,
}
end:
- if (arguments_argv)
- weechat_string_free_split (arguments_argv);
-
+ weechat_string_free_split (arguments_argv);
return rc;
}