1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

ruby: fix use of NULL variable when displaying exception

This commit is contained in:
Sébastien Helleu
2023-10-30 08:29:55 +01:00
parent 1769ce1814
commit 60b2b03f9a
3 changed files with 13 additions and 1 deletions
+7
View File
@@ -10,6 +10,13 @@ This document lists all the changes for each version. +
For a list of important changes that require manual actions, please look at release notes.
[[v4.1.2]]
== Version 4.1.2 (under dev)
Bug fixes::
* ruby: fix use of NULL variable when displaying exception
[[v4.1.1]]
== Version 4.1.1 (2023-10-26)
+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.1.2]]
== Version 4.1.2 (under dev)
No release notes.
[[v4.1.1]]
== Version 4.1.1 (2023-10-26)
+1 -1
View File
@@ -287,7 +287,7 @@ weechat_ruby_print_exception (VALUE err)
err_class = StringValuePtr (class_name);
}
if (strcmp (err_class, "SyntaxError") == 0)
if (err_class && (strcmp (err_class, "SyntaxError") == 0))
{
tmp3 = rb_inspect (err);
weechat_printf (NULL,