[前][次][番号順一覧][スレッド一覧]

ruby-changes:2728

From: ko1@a...
Date: 14 Dec 2007 02:07:29 +0900
Subject: [ruby-changes:2728] matz - Ruby:r14219 (trunk): * io.c (rb_io_synchronized): should check if initialized.

matz	2007-12-14 02:06:41 +0900 (Fri, 14 Dec 2007)

  New Revision: 14219

  Modified files:
    trunk/ChangeLog
    trunk/io.c

  Log:
    * io.c (rb_io_synchronized): should check if initialized.
      [ruby-dev:32585]

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14219&r2=14218
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=14219&r2=14218

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14218)
+++ ChangeLog	(revision 14219)
@@ -1,3 +1,8 @@
+Fri Dec 14 02:05:42 2007  Yukihiro Matsumoto  <matz@r...>
+
+	* io.c (rb_io_synchronized): should check if initialized.
+	  [ruby-dev:32585]
+
 Fri Dec 14 00:54:40 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* re.c (rb_reg_initialize): embedded string may override encoding
Index: io.c
===================================================================
--- io.c	(revision 14218)
+++ io.c	(revision 14219)
@@ -3301,6 +3301,7 @@
 void
 rb_io_synchronized(rb_io_t *fptr)
 {
+    rb_io_check_initialized(fptr);
     fptr->mode |= FMODE_SYNC;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]