summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-25 09:08:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-25 09:08:15 +0000
commit1699691976697357327e4bcffc3d598d8bb3f36d (patch)
tree6e505828f6a4c6a9567b0a1eece88494a70162f5 /dir.c
parent3622855a000cd07d570b139e941a76dfeea59078 (diff)
downloadruby-1699691976697357327e4bcffc3d598d8bb3f36d.tar.gz
ruby-1699691976697357327e4bcffc3d598d8bb3f36d.tar.xz
ruby-1699691976697357327e4bcffc3d598d8bb3f36d.zip
* regex.c (mbc_startpos_func): VC6 seems to be unable to
understand forward declaration for static variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 8589b7801..fcb4be7d0 100644
--- a/dir.c
+++ b/dir.c
@@ -909,7 +909,7 @@ rb_push_glob(str, flags)
char *p, *pend;
char *buf;
char *t;
- int nest, maxnest = 0;
+ int nest, maxnest;
int noescape = flags & FNM_NOESCAPE;
VALUE ary;
@@ -926,7 +926,7 @@ rb_push_glob(str, flags)
while (p < pend) {
t = buf;
- nest = 0;
+ nest = maxnest = 0;
while (p < pend && isdelim(*p)) p++;
while (p < pend && !isdelim(*p)) {
if (*p == '{') nest++, maxnest++;