diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-07 12:13:46 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-07 12:13:46 +0000 |
commit | b3eef21e2a39f2c743dbd86308a4dbfc2962d43c (patch) | |
tree | 7faefe74a9d6c9ad41081ed3c709cb5ab07d5286 /ext/dl | |
parent | d888290695c898d7f175f7ff65f966d464c59b95 (diff) | |
download | ruby-b3eef21e2a39f2c743dbd86308a4dbfc2962d43c.tar.gz ruby-b3eef21e2a39f2c743dbd86308a4dbfc2962d43c.tar.xz ruby-b3eef21e2a39f2c743dbd86308a4dbfc2962d43c.zip |
minor bugfix.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index d30105169..4f9f3efd0 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'; |