aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 17efcdc8d3..a95a0f1963 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -195,7 +195,7 @@ class OpenStruct
modifiable[new_ostruct_member(mname)] = args[0]
elsif len == 0
if @table.key?(mid)
- new_ostruct_member(mid)
+ new_ostruct_member(mid) unless frozen?
@table[mid]
end
else