From 9d919ae7bf4279b0ad25ff9622ff929849a3d3ba Mon Sep 17 00:00:00 2001 From: tenderlove Date: Fri, 23 Oct 2009 16:44:41 +0000 Subject: * ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2) [ruby-core:25762] * ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/dl.c | 1 - ext/dl/handle.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/dl/dl.c b/ext/dl/dl.c index 00762c5be..6bef7bb32 100644 --- a/ext/dl/dl.c +++ b/ext/dl/dl.c @@ -13,7 +13,6 @@ ID rbdl_id_stdcall; VALUE rb_dl_dlopen(int argc, VALUE argv[], VALUE self) { - rb_secure(2); return rb_class_new_instance(argc, argv, rb_cDLHandle); } diff --git a/ext/dl/handle.c b/ext/dl/handle.c index 0db66c70b..a9df5d611 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -114,6 +114,8 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self) rb_bug("rb_dlhandle_new"); } + rb_secure(2); + #if defined(HAVE_WINDOWS_H) if( !clib ){ HANDLE rb_libruby_handle(void); -- cgit