summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--dir.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f1e10094396..7442d312c88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/dir.c b/dir.c
index 587d96d4565..22dba86c8bc 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();