summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-13 23:59:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-13 23:59:41 +0000
commita1f4ea2127eea422a514c9d9ec646c98269e67ae (patch)
tree8d5e5d969f2bbf7b65de1992c24db87874e0e2fb /dir.c
parentd5938dd1c4ab8cad1fedc5dea28a32f5c58e6bd6 (diff)
* dir.c (rb_push_glob): avoid SEGV when no block given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 587d96d..22dba86 100644
--- a/dir.c
+++ b/dir.c
@@ -912,7 +912,7 @@ rb_push_glob(str, flags)
VALUE ary;
if (rb_block_given_p())
- ary = Qnil;
+ ary = 0;
else
ary = rb_ary_new();