summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/psych/tree_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/tree_builder.rb b/lib/psych/tree_builder.rb
index d9c7c5d..c158368 100644
--- a/lib/psych/tree_builder.rb
+++ b/lib/psych/tree_builder.rb
@@ -38,7 +38,7 @@ module Psych
def start_stream encoding
super
- @stack.push Nodes::Stream.new encoding
+ @stack.push Nodes::Stream.new(encoding)
end
def scalar(*args)