aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-03 04:35:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-03 04:35:24 +0000
commit745e01d3ca47ddaaee97495ec1a26b800a811177 (patch)
tree73e6b628fed0e96ee0047de080700a0380bc16ea /thread.c
parent7ac6c5e4ccf5ffdbcfbfde7d4edd2f3fbc3e6e6e (diff)
downloadruby-745e01d3ca47ddaaee97495ec1a26b800a811177.tar.gz
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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 184fed6313..dfd2b2129a 100644
--- a/thread.c
+++ b/thread.c
@@ -4718,7 +4718,7 @@ thread_shield_get_mutex(VALUE self)
{
VALUE mutex = GetThreadShieldPtr(self);
if (!mutex)
- rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)mutex);
+ rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)self);
return mutex;
}