1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +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 b0e4e20205
commit a399d3f68c
3 changed files with 13 additions and 1 deletions
+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,