1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +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
@@ -760,9 +760,8 @@ script_repo_sha512sum_file (const char *filename)
return NULL;
weechat_string_base_encode (16, hash, hash_size, hash_hexa);
weechat_string_tolower (hash_hexa);
return strdup (hash_hexa);
return weechat_string_tolower (hash_hexa);
}
/*