1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

ruby: fix crash in plugin initialization (closes #2163)

This regression was introduced by commit
701f64afc1.
This commit is contained in:
Sébastien Helleu
2024-07-15 09:33:40 +02:00
parent ceba5f4947
commit 40b074c6d6
+2 -2
View File
@@ -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");