From c07cf691adb4740759e9fd128a2f6702c912d70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 27 Jan 2023 20:47:24 +0100 Subject: core, plugins: check that string parameters are not NULL in search functions (issue #1872) --- src/plugins/ruby/weechat-ruby-api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/ruby/weechat-ruby-api.c') diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c index 54c894eab..fccec5063 100644 --- a/src/plugins/ruby/weechat-ruby-api.c +++ b/src/plugins/ruby/weechat-ruby-api.c @@ -125,7 +125,7 @@ weechat_ruby_api_register (VALUE class, VALUE name, VALUE author, c_shutdown_func = StringValuePtr (shutdown_func); c_charset = StringValuePtr (charset); - if (plugin_script_search (weechat_ruby_plugin, ruby_scripts, c_name)) + if (plugin_script_search (ruby_scripts, c_name)) { /* another script already exists with same name */ weechat_printf (NULL, -- cgit v1.2.3