summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 14:30:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 14:30:02 +0000
commit23a8a5e78fa5e9a959155d1f0ab25695e0515cf9 (patch)
treef8fad2848a21a0a372bb34057935e33cd35e101f
parent1ffc06198e778d20fa8d9aefee43827c5c91865d (diff)
* lib/rexml/node.rb (REXML::Node::indent): should initialize rv
variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in [ruby-dev:32783]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/rexml/node.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 929fa2f896d..66393c2d235 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Dec 25 23:25:29 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* 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 9780376829c..d5e8456e530 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 = "" )