summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/dl/handle.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fce51566555..d3ecfbc9e05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 f5e7a33f7e5..522d1a1dc63 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) {