mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d5938dd1c4
commit
a1f4ea2127
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Mar 14 08:57:41 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* dir.c (rb_push_glob): avoid SEGV when no block given.
|
||||
|
||||
Wed Mar 13 19:05:15 2002 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* dir.c: FNM_PERIOD is obsoleted and FNM_DOTMATCH is introduced
|
||||
|
|
2
dir.c
2
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue