From 23a8a5e78fa5e9a959155d1f0ab25695e0515cf9 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 25 Dec 2007 14:30:02 +0000 Subject: [PATCH] * lib/rexml/node.rb (REXML::Node::indent): should initialize rv variable. a patch from Tadayoshi Funaba in [ruby-dev:32783]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rexml/node.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 929fa2f896..66393c2d23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Dec 25 23:25:29 2007 Yukihiro Matsumoto + + * lib/rexml/node.rb (REXML::Node::indent): should initialize rv + variable. a patch from Tadayoshi Funaba in + [ruby-dev:32783]. + Tue Dec 25 23:16:01 2007 Nobuyoshi Nakada * ruby.c (proc_options): encoding option in shbang and RUBYOPT did not diff --git a/lib/rexml/node.rb b/lib/rexml/node.rb index 9780376829..d5e8456e53 100644 --- a/lib/rexml/node.rb +++ b/lib/rexml/node.rb @@ -27,7 +27,7 @@ module REXML 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 = "" )