1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-14 06:13:10 +00:00

Ensure fields are empty

This commit is contained in:
Ciarán O'Mara 2020-04-12 17:28:16 +10:00
parent 89d7e94f77
commit 3e1a802372

View file

@ -83,6 +83,8 @@ end
function Base.read!(rdr::Reader, rec::Record)
empty!(rec.fields) #Note: data is pushed to the fields field, and other field data is overwritten. #TODO: distinguish for inplace reading pattern.
cs, ln, f = readrecord!(rdr.state.stream, rec, (rdr.state.state, rdr.state.linenum))
rdr.state.state = cs