summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
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;