From 6dfd299dec7fa9b9a10857d170156ac4f17da9a2 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 25 Mar 2002 08:21:01 +0000 Subject: [PATCH] * dir.c (rb_push_glob): local variable 'maxnest' was uninitialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ dir.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7c0628e09..7932105e60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 25 17:18:48 2002 Nobuyoshi Nakada + + * dir.c (rb_push_glob): local variable 'maxnest' was + uninitialized. + Mon Mar 25 13:24:20 2002 Yukihiro Matsumoto * ext/socket/socket.c (bsock_do_not_rev_lookup_set): should not be diff --git a/dir.c b/dir.c index 2e728adda2..8589b7801b 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; + int nest, maxnest = 0; int noescape = flags & FNM_NOESCAPE; VALUE ary;