summaryrefslogtreecommitdiff
path: root/ext/dl/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r--ext/dl/handle.c12
1 files changed, 1 insertions, 11 deletions
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 ){