ruby-changes:31379
From: akr <ko1@a...>
Date: Tue, 29 Oct 2013 12:09:09 +0900 (JST)
Subject: [ruby-changes:31379] akr:r43458 (trunk): * ext/readline/readline.c (readline_getc): Consider
akr 2013-10-29 12:09:00 +0900 (Tue, 29 Oct 2013) New Revision: 43458 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43458 Log: * ext/readline/readline.c (readline_getc): Consider NULL as input. Modified files: trunk/ChangeLog trunk/ext/readline/readline.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43457) +++ ChangeLog (revision 43458) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Oct 29 12:08:05 2013 Tanaka Akira <akr@f...> + + * ext/readline/readline.c (readline_getc): Consider + NULL as input. + Tue Oct 29 11:10:08 2013 Aman Gupta <ruby@t...> * gc.c (gc_profile_total_time): fix off-by-one error in Index: ext/readline/readline.c =================================================================== --- ext/readline/readline.c (revision 43457) +++ ext/readline/readline.c (revision 43458) @@ -204,6 +204,8 @@ static int https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L204 readline_getc(FILE *input) { struct getc_struct data; + if (input == NULL) /* editline may give NULL as input. */ + input = stdin; data.input = input; data.fd = fileno(input); again: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/