1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33: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 21759171d2
commit 1a5ff442cb
2 changed files with 2 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,