From c2609bcf247301e6e1f83f5cf65842697bb02d0f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 17 Feb 2009 18:17:51 +0000 Subject: * ext/dl/handle.c (rb_dlhandle_sym): moved conditionally used variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/handle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/dl/handle.c b/ext/dl/handle.c index 24269dfd7..b727f4676 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 -- cgit