From 056d798ed2aff0f5f9a3abfb73e749cdc174d8bf 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: svn+ssh://ci.ruby-lang.org/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 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 -- cgit v1.2.3