From 976c01b404220d7ffcdea2203b17d93ccfbb33aa Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Mar 2009 11:13:40 +0000 Subject: * 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 --- ext/dl/handle.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'ext') 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 ){ -- cgit v1.2.3