1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/stringio/stringio.c (strio_mark): must check if ptr is NULL

first.  [ruby-talk:38873]

* lib/mkmf.rb (create_makefile): should print depend file when
  make is other than nmake.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-04-23 16:22:25 +00:00
parent ad8dbab888
commit b596fbbc37
4 changed files with 15 additions and 5 deletions

View file

@ -53,7 +53,9 @@ static void
strio_mark(ptr)
struct StringIO *ptr;
{
rb_gc_mark(ptr->string);
if (ptr) {
rb_gc_mark(ptr->string);
}
}
static void
@ -181,7 +183,6 @@ static VALUE
strio_s_allocate(klass)
VALUE klass;
{
struct StringIO *ptr;
return Data_Wrap_Struct(klass, strio_mark, strio_free, 0);
}