diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-18 14:10:10 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-18 14:28:58 +0100 |
commit | 40339b288ac37ace539d9091e8a2878540f49273 (patch) | |
tree | 5570b3a5a48e8a4cee4daaa36bc002d93a392084 /src/plugins/script/script-repo.c | |
parent | eb6cc0bc2afa96824667521d3405bd1c077a4690 (diff) | |
download | weechat-40339b288ac37ace539d9091e8a2878540f49273.zip |
api: return newly allocated string in functions string_tolower and string_toupper
Diffstat (limited to 'src/plugins/script/script-repo.c')
-rw-r--r-- | src/plugins/script/script-repo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index bc0e18e4c..aa277b49a 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -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); } /* |