diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 20:47:24 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:22 +0100 |
commit | c07cf691adb4740759e9fd128a2f6702c912d70f (patch) | |
tree | 91520d9be1270aae41d23ffeae1f69d3a31b10d2 /src/plugins/javascript/weechat-js-api.cpp | |
parent | c9ac4fef4b7aa054df72bddf667edea0608d39c6 (diff) | |
download | weechat-c07cf691adb4740759e9fd128a2f6702c912d70f.zip |
core, plugins: check that string parameters are not NULL in search functions (issue #1872)
Diffstat (limited to 'src/plugins/javascript/weechat-js-api.cpp')
-rw-r--r-- | src/plugins/javascript/weechat-js-api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/javascript/weechat-js-api.cpp b/src/plugins/javascript/weechat-js-api.cpp index 5c446ed66..e05419048 100644 --- a/src/plugins/javascript/weechat-js-api.cpp +++ b/src/plugins/javascript/weechat-js-api.cpp @@ -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, |