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

ruby-changes:26987

From: nobu <ko1@a...>
Date: Mon, 4 Feb 2013 15:10:24 +0900 (JST)
Subject: [ruby-changes:26987] nobu:r39039 (trunk): console.c: initialize

nobu	2013-02-04 15:10:12 +0900 (Mon, 04 Feb 2013)

  New Revision: 39039

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39039

  Log:
    console.c: initialize
    
    * ext/io/console/console.c (rawmode_opt): initialize options for the
      case all options are not given.

  Modified files:
    trunk/ChangeLog
    trunk/ext/io/console/console.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39038)
+++ ChangeLog	(revision 39039)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Feb  4 15:10:10 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/io/console/console.c (rawmode_opt): initialize options for the
+	  case all options are not given.
+
 Mon Feb  4 12:44:13 2013  Koichi Sasada  <ko1@a...>
 
 	* vm_dump.c (control_frame_dump): capitalize prefix of `ep'
Index: ext/io/console/console.c
===================================================================
--- ext/io/console/console.c	(revision 39038)
+++ ext/io/console/console.c	(revision 39039)
@@ -105,6 +105,8 @@ rawmode_opt(int argc, VALUE *argv, rawmo https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L105
     if (!NIL_P(vopts)) {
 	VALUE vmin = rb_hash_aref(vopts, ID2SYM(rb_intern("min")));
 	VALUE vtime = rb_hash_aref(vopts, ID2SYM(rb_intern("time")));
+	opts->vmin = 0;
+	opts->vtime = 0;
 	if (!NIL_P(vmin)) {
 	    opts->vmin = NUM2INT(vmin);
 	    optp = opts;

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

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