From 40ceea0a75487f26a4a84986a84a918609abdf7b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 25 Mar 2002 09:08:15 +0000 Subject: * regex.c (mbc_startpos_func): VC6 seems to be unable to understand forward declaration for static variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 8589b7801b..fcb4be7d07 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++; -- cgit v1.2.3