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/ruby/weechat-ruby.c | |
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/ruby/weechat-ruby.c')
-rw-r--r-- | src/plugins/ruby/weechat-ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index ab2645c36..1ce7da62b 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -803,7 +803,7 @@ weechat_ruby_unload_name (const char *name) { struct t_plugin_script *ptr_script; - ptr_script = plugin_script_search (weechat_ruby_plugin, ruby_scripts, name); + ptr_script = plugin_script_search (ruby_scripts, name); if (ptr_script) { weechat_ruby_unload (ptr_script); @@ -832,7 +832,7 @@ weechat_ruby_reload_name (const char *name) struct t_plugin_script *ptr_script; char *filename; - ptr_script = plugin_script_search (weechat_ruby_plugin, ruby_scripts, name); + ptr_script = plugin_script_search (ruby_scripts, name); if (ptr_script) { filename = strdup (ptr_script->filename); |