summaryrefslogtreecommitdiffstats
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
commit75ecba8b3db5c65bdb9c55fbe43504fe0b32bd91 (patch)
tree8d5e5d969f2bbf7b65de1992c24db87874e0e2fb /dir.c
parent1c4a54f6b4597f7eeb94bd3ea3b65e9193b50c24 (diff)
downloadruby-75ecba8b3db5c65bdb9c55fbe43504fe0b32bd91.tar.gz
ruby-75ecba8b3db5c65bdb9c55fbe43504fe0b32bd91.tar.xz
ruby-75ecba8b3db5c65bdb9c55fbe43504fe0b32bd91.zip
* dir.c (rb_push_glob): avoid SEGV when no block given.
git-svn-id: http://svn.ruby-lang.org/repos/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 587d96d45..22dba86c8 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();