summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-25 01:19:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-25 01:19:11 +0000
commitf88be143445890c8dece4e5f9c527e09ed8b9844 (patch)
tree59e9d3bfbc42fcb925239fc0f33af9b2ab0c3a6d /ext
parentaeaa50ad9d72c782b95aca743f791ee1de0da7e1 (diff)
downloadruby-f88be143445890c8dece4e5f9c527e09ed8b9844.tar.gz
ruby-f88be143445890c8dece4e5f9c527e09ed8b9844.tar.xz
ruby-f88be143445890c8dece4e5f9c527e09ed8b9844.zip
* ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
variable declaration. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index f5e7a33f7..522d1a1dc 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -64,8 +64,8 @@ rb_dlhandle_close(VALUE self)
TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
if(dlhandle->open) {
- dlhandle->open = 0;
int ret = dlclose(dlhandle->ptr);
+ dlhandle->open = 0;
/* Check dlclose for successful return value */
if(ret) {