diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:07:02 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 08:53:22 +0200 |
commit | 9a5a1fb300d30630f62cb4707ee6be6937f3467e (patch) | |
tree | 3eb560f6c64641ba3ae22d059ffbb020b0451daf /src/plugins/relay/relay-info.c | |
parent | f11c7c1bf46d494a5a0df616ed0dcc11c64505e1 (diff) | |
download | weechat-9a5a1fb300d30630f62cb4707ee6be6937f3467e.zip |
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865)
Diffstat (limited to 'src/plugins/relay/relay-info.c')
-rw-r--r-- | src/plugins/relay/relay-info.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-info.c b/src/plugins/relay/relay-info.c index 18322ffbf..b068f0b9e 100644 --- a/src/plugins/relay/relay-info.c +++ b/src/plugins/relay/relay-info.c @@ -106,8 +106,7 @@ relay_info_info_relay_client_count_cb (const void *pointer, void *data, ptr_count = str_count; end: - if (items) - weechat_string_free_split (items); + weechat_string_free_split (items); return (ptr_count) ? strdup (ptr_count) : NULL; } |