ruby-changes:13680
From: nobu <ko1@a...>
Date: Sun, 25 Oct 2009 10:20:17 +0900 (JST)
Subject: [ruby-changes:13680] Ruby:r25465 (trunk): * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
nobu 2009-10-25 10:19:11 +0900 (Sun, 25 Oct 2009) New Revision: 25465 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25465 Log: * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local variable declaration. Modified files: trunk/ChangeLog trunk/ext/dl/handle.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25464) +++ ChangeLog (revision 25465) @@ -1,3 +1,8 @@ +Sun Oct 25 10:19:09 2009 Nobuyoshi Nakada <nobu@r...> + + * 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@m...> * lib/matrix.rb (**): Optimization (up to 45% faster) Index: ext/dl/handle.c =================================================================== --- ext/dl/handle.c (revision 25464) +++ ext/dl/handle.c (revision 25465) @@ -64,8 +64,8 @@ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle); if(dlhandle->open) { + int ret = dlclose(dlhandle->ptr); dlhandle->open = 0; - int ret = dlclose(dlhandle->ptr); /* Check dlclose for successful return value */ if(ret) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/