summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 01:02:04 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 01:02:04 +0000
commitf96cd536ee6be128fa911c9a0cceef733d86ad2f (patch)
tree96b96f00c6147a5de96a480d8d82faf1d6fbee7c /thread.c
parente886f46b77d65a4d5ac1e3c8906fa78d5ad8b615 (diff)
merges r20615 from trunk into ruby_1_9_1.
* thread.c (rb_mutex_unlock): shut up warning. a patch from Kazuhiro NISHIYAMA in [ruby-dev:37345]. fix #846 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20693 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 4fbc14d86c..4ab0788534 100644
--- a/thread.c
+++ b/thread.c
@@ -2978,7 +2978,7 @@ rb_mutex_unlock(VALUE self)
GetMutexPtr(self, mutex);
err = mutex_unlock(mutex);
- if (err) rb_raise(rb_eThreadError, err);
+ if (err) rb_raise(rb_eThreadError, "%s", err);
return self;
}