diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-17 18:17:51 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-17 18:17:51 +0000 |
| commit | c2609bcf247301e6e1f83f5cf65842697bb02d0f (patch) | |
| tree | c8481580aff6ebf011108df0c08d93881176bc68 /ext | |
| parent | 59c1c38662070a08dd7fd0151d104586534bcd1b (diff) | |
| download | ruby-c2609bcf247301e6e1f83f5cf65842697bb02d0f.tar.gz ruby-c2609bcf247301e6e1f83f5cf65842697bb02d0f.tar.xz ruby-c2609bcf247301e6e1f83f5cf65842697bb02d0f.zip | |
* 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
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/dl/handle.c | 3 |
1 files changed, 1 insertions, 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 |
