1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +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
+2 -2
View File
@@ -486,7 +486,7 @@ weechat_js_unload_name (const char *name)
{
struct t_plugin_script *ptr_script;
ptr_script = plugin_script_search (weechat_js_plugin, js_scripts, name);
ptr_script = plugin_script_search (js_scripts, name);
if (ptr_script)
{
weechat_js_unload (ptr_script);
@@ -528,7 +528,7 @@ weechat_js_reload_name (const char *name)
struct t_plugin_script *ptr_script;
char *filename;
ptr_script = plugin_script_search (weechat_js_plugin, js_scripts, name);
ptr_script = plugin_script_search (js_scripts, name);
if (ptr_script)
{
filename = strdup (ptr_script->filename);