1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-10-25 01:19:11 +00:00
parent 74919cd970
commit b6c007ac85
2 changed files with 6 additions and 1 deletions

View file

@ -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> Sun Oct 25 05:44:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb (**): Optimization (up to 45% faster) * lib/matrix.rb (**): Optimization (up to 45% faster)

View file

@ -64,8 +64,8 @@ rb_dlhandle_close(VALUE self)
TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle); TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
if(dlhandle->open) { if(dlhandle->open) {
dlhandle->open = 0;
int ret = dlclose(dlhandle->ptr); int ret = dlclose(dlhandle->ptr);
dlhandle->open = 0;
/* Check dlclose for successful return value */ /* Check dlclose for successful return value */
if(ret) { if(ret) {