about summary refs log tree commit diff
path: root/src/libstore/derivations.cc
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-03-06T18·03-0500
committerShea Levy <shea@shealevy.com>2017-03-06T18·03-0500
commit4fc30922cf00d79bd603ac46255fa73a3c2ee565 (patch)
tree3d485f060c3986e2074edb12b784d265e13458a7 /src/libstore/derivations.cc
parent1cf480110879ffc8aee94b4b75999da405b71d7c (diff)
istringstream_nocopy: Implement in a standards-compliant way.
Fixes the problem mentioned in e6a61b8da788efbbbb0eb690c49434b6b5fc9741

See #1135
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r--src/libstore/derivations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index ce1ac7d33229..38a87240c3ce 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -152,7 +152,7 @@ static StringSet parseStrings(std::istream & str, bool arePaths)
 static Derivation parseDerivation(const string & s)
 {
     Derivation drv;
-    std::istringstream str(s);
+    istringstream_nocopy str(s);
     expect(str, "Derive([");
 
     /* Parse the list of outputs. */