1
0
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:
Sébastien Helleu
2024-07-15 09:38:37 +02:00
parent 22370481a0
commit 7cb991667c
3 changed files with 15 additions and 2 deletions
+8
View File
@@ -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)
+5
View File
@@ -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)
+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");