summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}