about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-04T09·27+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-04T09·27+0200
commit58d8a213b08aca7774b246749976c9b1049d0647 (patch)
treed63703d044a684502f14a35fcc1038d6ba9c68f4
parent3f8576a6abedfa7c16d6f13dbdbabaa695cf60bb (diff)
Tweak
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 461a5477686c..072866a323a8 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -819,7 +819,7 @@ static void prim_readDir(EvalState & state, const Pos & pos, Value * * args, Val
         Value * ent_val = state.allocAttr(v, state.symbols.create(ent.name));
         if (ent.type == DT_UNKNOWN)
             ent.type = getFileType(path);
-        mkString(*ent_val,
+        mkStringNoCopy(*ent_val,
             ent.type == DT_REG ? "regular" :
             ent.type == DT_DIR ? "directory" :
             ent.type == DT_LNK ? "symlink" :