ruby-changes:3215
From: ko1@a...
Date: 25 Dec 2007 23:30:25 +0900
Subject: [ruby-changes:3215] matz - Ruby:r14708 (trunk): * lib/rexml/node.rb (REXML::Node::indent): should initialize rv
matz 2007-12-25 23:30:02 +0900 (Tue, 25 Dec 2007) New Revision: 14708 Modified files: trunk/ChangeLog trunk/lib/rexml/node.rb Log: * lib/rexml/node.rb (REXML::Node::indent): should initialize rv variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in [ruby-dev:32783]. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14708&r2=14707 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/node.rb?r1=14708&r2=14707 Index: ChangeLog =================================================================== --- ChangeLog (revision 14707) +++ ChangeLog (revision 14708) @@ -1,3 +1,9 @@ +Tue Dec 25 23:25:29 2007 Yukihiro Matsumoto <matz@r...> + + * lib/rexml/node.rb (REXML::Node::indent): should initialize rv + variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in + [ruby-dev:32783]. + Tue Dec 25 23:16:01 2007 Nobuyoshi Nakada <nobu@r...> * ruby.c (proc_options): encoding option in shbang and RUBYOPT did not Index: lib/rexml/node.rb =================================================================== --- lib/rexml/node.rb (revision 14707) +++ lib/rexml/node.rb (revision 14708) @@ -27,7 +27,7 @@ unless indent.nil? Kernel.warn( "#{self.class.name}.to_s(indent) parameter is deprecated" ) f = REXML::Formatters::Pretty.new( indent ) - f.write( self, rv, indent ) + f.write( self, rv = "" ) else f = REXML::Formatters::Default.new f.write( self, rv = "" ) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml