summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-17 18:17:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-17 18:17:51 +0000
commit056d798ed2aff0f5f9a3abfb73e749cdc174d8bf (patch)
treec8481580aff6ebf011108df0c08d93881176bc68
parentda97071549496807cedae46a2b81d68407fed2fe (diff)
* ext/dl/handle.c (rb_dlhandle_sym): moved conditionally used variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/dl/handle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index 24269dfd78..b727f46763 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -129,10 +129,9 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
struct dl_handle *dlhandle;
void *handle;
const char *name;
- const char *err;
int i;
-
#if defined(HAVE_DLERROR)
+ const char *err;
# define CHECK_DLERROR if( err = dlerror() ){ func = 0; }
#else
# define CHECK_DLERROR