summaryrefslogtreecommitdiff
path: root/ext/dl/handle.c
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-07 12:13:46 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-07 12:13:46 +0000
commitf605a6fcb788af156d79339d2a0b140ddac8846e (patch)
tree7faefe74a9d6c9ad41081ed3c709cb5ab07d5286 /ext/dl/handle.c
parent7bcc13550437e1c4198fbf6212abc8e7672e1adb (diff)
minor bugfix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r--ext/dl/handle.c2
1 files changed, 1 insertions, 1 deletions
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';