diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-13 11:46:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-13 11:46:01 +0000 |
commit | 7aa4c13360447c3b853d19bf19c068678c4d1656 (patch) | |
tree | fcea32318586791de154faa3a776d532cab4e150 /ext/dl | |
parent | c483dcea7d90593df29739387c7b81b8582b37cd (diff) | |
download | ruby-7aa4c13360447c3b853d19bf19c068678c4d1656.tar.gz |
* ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic
string to rb_raise directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index 3e3b91a8c9..a450e6bac5 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -70,7 +70,7 @@ rb_dlhandle_close(VALUE self) /* Check dlclose for successful return value */ if(ret) { #if defined(HAVE_DLERROR) - rb_raise(rb_eDLError, dlerror()); + rb_raise(rb_eDLError, "%s", dlerror()); #else rb_raise(rb_eDLError, "could not close handle"); #endif |