mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
core, plugins: check that string parameters are not NULL in search functions (issue #1872)
This commit is contained in:
@@ -149,7 +149,7 @@ API_FUNC(register)
|
||||
v8::String::Utf8Value shutdown_func(args[5]);
|
||||
v8::String::Utf8Value charset(args[6]);
|
||||
|
||||
if (plugin_script_search (weechat_js_plugin, js_scripts, *name))
|
||||
if (plugin_script_search (js_scripts, *name))
|
||||
{
|
||||
/* another script already exists with same name */
|
||||
weechat_printf (NULL,
|
||||
|
||||
Reference in New Issue
Block a user