diff options
author | Anthony Ramine <[email protected]> | 2013-04-26 20:35:32 +0200 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2013-04-26 23:35:40 +0200 |
commit | 897ae234ef868c17116b683052ee46effd60c3d2 (patch) | |
tree | 691bd988194a13a233fd16e59c654aecb6b85496 /lib/stdlib/src | |
parent | 7e9ae3007fd3c44a05a746628983faff401dfd0c (diff) | |
download | otp-897ae234ef868c17116b683052ee46effd60c3d2.tar.gz otp-897ae234ef868c17116b683052ee46effd60c3d2.tar.bz2 otp-897ae234ef868c17116b683052ee46effd60c3d2.zip |
Fix an inconsistent state in epp
When entering a new file, epp doesn't properly set #epp.name2 like it
does on initialisation, generating a malformed file attribute when it
leaves the file.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/epp.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/epp.erl b/lib/stdlib/src/epp.erl index e31cd63f69..d1d060ebc8 100644 --- a/lib/stdlib/src/epp.erl +++ b/lib/stdlib/src/epp.erl @@ -601,7 +601,7 @@ enter_file2(NewF, Pname, From, St0, AtLocation) -> %% file will depend on the order of file inclusions in the parent files Path = [filename:dirname(Pname) | tl(St0#epp.path)], _ = set_encoding(NewF), - #epp{file=NewF,location=Loc,name=Pname,delta=0, + #epp{file=NewF,location=Loc,name=Pname,name2=Pname,delta=0, sstk=[St0|St0#epp.sstk],path=Path,macs=Ms}. enter_file_reply(From, Name, Location, AtLocation) -> |