diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 04:06:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 04:06:57 +0000 |
commit | f5315680aabcca7f29eb8e893953c26dca0042f8 (patch) | |
tree | 09c5aeee6d945b4cf00385269dd31d474fadc2ca | |
parent | 7e59a8c5e4dcbc19170a54e8a26f77e7256ee29d (diff) | |
download | ruby-f5315680aabcca7f29eb8e893953c26dca0042f8.tar.gz |
* ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/dl/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index a65e4ab5cd..bf2d7aa6cc 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -136,7 +136,6 @@ rb_dlhandle_sym(VALUE self, VALUE sym) struct dl_handle *dlhandle; void *handle; const char *name; - int i; #if defined(HAVE_DLERROR) const char *err; # define CHECK_DLERROR if( err = dlerror() ){ func = 0; } @@ -168,6 +167,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym) CHECK_DLERROR; #if defined(FUNC_STDCALL) if( !func ){ + int i; int len = strlen(name); char *name_n; #if defined(__CYGWIN__) || defined(_WIN32) || defined(__MINGW32__) |