mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
ruby: fix crash in plugin initialization (issue #2163)
This regression was introduced by commit
3d041a0364.
This commit is contained in:
@@ -8,6 +8,14 @@
|
||||
:see-release-notes: If you are upgrading: please see release notes.
|
||||
:breaking: pass:quotes[*[breaking]*]
|
||||
|
||||
[[v4.3.5]]
|
||||
== Version 4.3.5 (under dev)
|
||||
|
||||
[[v4.3.5_fixed]]
|
||||
=== Fixed
|
||||
|
||||
* ruby: fix crash in plugin initialization (issue #2163)
|
||||
|
||||
[[v4.3.4]]
|
||||
== Version 4.3.4 (2024-07-03)
|
||||
|
||||
|
||||
@@ -11,6 +11,11 @@ It is recommended to read it when upgrading to a new stable version. +
|
||||
For a complete list of changes, please look at ChangeLog.
|
||||
|
||||
|
||||
[[v4.3.5]]
|
||||
== Version 4.3.5 (under dev)
|
||||
|
||||
No release notes.
|
||||
|
||||
[[v4.3.4]]
|
||||
== Version 4.3.4 (2024-07-03)
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user