summaryrefslogtreecommitdiff
path: root/lib/rexml/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/node.rb')
-rw-r--r--lib/rexml/node.rb2
1 files changed, 1 insertions, 1 deletions
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 = "" )