1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-23 03:16:37 +02:00

core, plugins: check that string parameters are not NULL in search functions (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-27 20:47:24 +01:00
parent c9ac4fef4b
commit c07cf691ad
40 changed files with 127 additions and 33 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ API_FUNC(register)
&license, &description, &shutdown_func, &charset))
API_WRONG_ARGS(API_RETURN_ERROR);
if (plugin_script_search (weechat_python_plugin, python_scripts, name))
if (plugin_script_search (python_scripts, name))
{
/* another script already exists with same name */
weechat_printf (NULL,