* 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
This commit is contained in:
matz 2007-12-25 14:30:02 +00:00
Родитель 1ffc06198e
Коммит 23a8a5e78f
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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 = "" )