mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread.c: fix message
* thread.c (thread_shield_get_mutex): fix object to be shown in the message, NULL pointer is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ac6c5e4cc
commit
745e01d3ca
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
|
@ -4718,7 +4718,7 @@ thread_shield_get_mutex(VALUE self)
|
||||||
{
|
{
|
||||||
VALUE mutex = GetThreadShieldPtr(self);
|
VALUE mutex = GetThreadShieldPtr(self);
|
||||||
if (!mutex)
|
if (!mutex)
|
||||||
rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)mutex);
|
rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)self);
|
||||||
return mutex;
|
return mutex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue