about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-10-19T00·25-0400
committerShea Levy <shea@shealevy.com>2014-10-19T00·28-0400
commit0ee1ca628affcf992f3ec0cd0c9344fd825b9825 (patch)
tree73ada502557738b6dc14117075beea0d095494e1 /src/libexpr/primops.cc
parentd16e3c7f091b0ecc4975368575c71d69ce7a9bc7 (diff)
baseNameOf: Don't copy paths to the store first
Diffstat (limited to 'src/libexpr/primops.cc')
-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 50d03f369bf9..a7884cb85521 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -730,7 +730,7 @@ static void prim_pathExists(EvalState & state, const Pos & pos, Value * * args,
 static void prim_baseNameOf(EvalState & state, const Pos & pos, Value * * args, Value & v)
 {
     PathSet context;
-    mkString(v, baseNameOf(state.coerceToString(pos, *args[0], context)), context);
+    mkString(v, baseNameOf(state.coerceToString(pos, *args[0], context, false, false)), context);
 }