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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user