diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-13 23:59:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-13 23:59:41 +0000 |
commit | a1f4ea2127eea422a514c9d9ec646c98269e67ae (patch) | |
tree | 8d5e5d969f2bbf7b65de1992c24db87874e0e2fb /dir.c | |
parent | d5938dd1c4ab8cad1fedc5dea28a32f5c58e6bd6 (diff) | |
download | ruby-a1f4ea2127eea422a514c9d9ec646c98269e67ae.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |