diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 11:13:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 11:13:40 +0000 |
commit | 976c01b404220d7ffcdea2203b17d93ccfbb33aa (patch) | |
tree | ffc09f3ec515ef406e58ec1de735da380269c1fb | |
parent | 612fe10526f0d88318d4c6a57b2f7897b31b1f7b (diff) | |
download | ruby-976c01b404220d7ffcdea2203b17d93ccfbb33aa.tar.gz |
* ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol
name. [ruby-dev:38150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/dl/handle.c | 12 |
2 files changed, 6 insertions, 11 deletions
@@ -1,3 +1,8 @@ +Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol + name. [ruby-dev:38150] + Wed Mar 11 17:26:38 2009 NAKAMURA Usaku <usa@ruby-lang.org> * ext/dl/win32/lib/Win32API.rb: call by :stdcall as default. diff --git a/ext/dl/handle.c b/ext/dl/handle.c index bf2d7aa6cc..4647f2a7b3 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -145,17 +145,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym) rb_secure(2); - if( sym == Qnil ){ -#if defined(RTLD_NEXT) - name = RTLD_NEXT; -#else - name = NULL; -#endif - } - else{ - name = StringValuePtr(sym); - } - + name = StringValuePtr(sym); Data_Get_Struct(self, struct dl_handle, dlhandle); if( ! dlhandle->open ){ |