summaryrefslogtreecommitdiff
path: root/src/plugins/script/script-repo.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-12-18 14:10:10 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-12-18 14:28:58 +0100
commit40339b288ac37ace539d9091e8a2878540f49273 (patch)
tree5570b3a5a48e8a4cee4daaa36bc002d93a392084 /src/plugins/script/script-repo.c
parenteb6cc0bc2afa96824667521d3405bd1c077a4690 (diff)
downloadweechat-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.c3
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);
}
/*