diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-25 01:19:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-25 01:19:11 +0000 |
commit | b6c007ac856be8756e2b6fb6f4403232a0e04618 (patch) | |
tree | 59e9d3bfbc42fcb925239fc0f33af9b2ab0c3a6d | |
parent | 74919cd970b445b634c36dfcedd16bef12579750 (diff) | |
download | ruby-b6c007ac856be8756e2b6fb6f4403232a0e04618.tar.gz |
* ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
variable declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/dl/handle.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Oct 25 10:19:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local + variable declaration. + Sun Oct 25 05:44:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca> * lib/matrix.rb (**): Optimization (up to 45% faster) diff --git a/ext/dl/handle.c b/ext/dl/handle.c index f5e7a33f7e..522d1a1dc6 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) { |