summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-10 16:30:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-10 16:30:40 +0000
commitbd4d9e9a356def5be49b28be86240f5efd04489b (patch)
tree029ad29e8bfbe57aba6f8f4e04f0c41cbb4f2617 /thread.c
parent2c91d4ea9c2311a4034543893f70d4aa52089dee (diff)
* 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/trunk@20615 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;
}