From 40b074c6d6659d9db1d5b31660281afb3a9ec346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 15 Jul 2024 09:33:40 +0200 Subject: [PATCH] ruby: fix crash in plugin initialization (closes #2163) This regression was introduced by commit 701f64afc17402449bf43a108591b126a3bf26f8. --- src/plugins/ruby/weechat-ruby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index 5036f19fb..4e738431d 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -1266,7 +1266,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) { int ruby_error, old_ruby_quiet; VALUE err; - char* process_options_argv[] = { "ruby", "-enil", NULL }; + char* ruby_options_argv[] = { "ruby", "-enil", NULL }; char *weechat_ruby_code = { "$stdout = WeechatOutputs\n" "$stderr = WeechatOutputs\n" @@ -1365,7 +1365,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) ruby_init (); - ruby_process_options (2, process_options_argv); + ruby_options (2, ruby_options_argv); /* redirect stdin and stdout */ ruby_mWeechatOutputs = rb_define_module ("WeechatOutputs");