1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

api: return newly allocated string in functions string_tolower and string_toupper

This commit is contained in:
Sébastien Helleu
2022-12-18 14:10:10 +01:00
parent eb6cc0bc2a
commit 40339b288a
22 changed files with 281 additions and 150 deletions
+1 -2
View File
@@ -2877,10 +2877,9 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
strcat (new_args, channels[i]);
if (manual_join || noswitch)
{
channel_name = strdup (pos_channel);
channel_name = weechat_string_tolower (pos_channel);
if (channel_name)
{
weechat_string_tolower (channel_name);
if (manual_join)
{
weechat_hashtable_set (server->join_manual,