aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/archive.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-13 17:30:42 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-13 17:30:42 +0200
commit0a9da00a10fa27a3e3b98439cb0a7d5e79135b58 (patch)
tree34057b575b3a5e5d6c556bff73e6dc5960229aee /src/libutil/archive.hh
parentfc84c358d9e55e9ba1d939d8974f6deef629848e (diff)
NarAccessor: Run in constant memory
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r--src/libutil/archive.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh
index 795e9ce02..302b1bb18 100644
--- a/src/libutil/archive.hh
+++ b/src/libutil/archive.hh
@@ -65,9 +65,10 @@ struct ParseSink
struct TeeParseSink : ParseSink
{
+ StringSink saved;
TeeSource source;
- TeeParseSink(Source & source) : source(source) { }
+ TeeParseSink(Source & source) : source(source, saved) { }
};
void parseDump(ParseSink & sink, Source & source);