From f605a6fcb788af156d79339d2a0b140ddac8846e Mon Sep 17 00:00:00 2001 From: ttate Date: Mon, 7 Feb 2005 12:13:46 +0000 Subject: minor bugfix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dl/handle.c b/ext/dl/handle.c index d30105169c..4f9f3efd03 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -131,6 +131,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym) void *handle; const char *name; const char *err; + int i; rb_secure(2); @@ -162,7 +163,6 @@ rb_dlhandle_sym(VALUE self, VALUE sym) #if defined(__CYGWIN__) || defined(WIN32) || defined(__MINGW32__) { int len = strlen(name); - int i; char *name_a = (char*)xmalloc(len+2); strcpy(name_a, name); name_a[len] = 'A'; -- cgit v1.2.3