Skip to content

Commit

Permalink
Suppress have_root not initialized warnings on Ruby < 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 16, 2024
1 parent 67efb59 commit 1cc1d9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rexml/parsers/baseparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def add_listener( listener )
def stream=( source )
@source = SourceFactory.create_from( source )
@closed = nil
@have_root = false
@document_status = nil
@tags = []
@stack = []
Expand Down

0 comments on commit 1cc1d9a

Please sign in to comment.