baseNameOf: Don't copy paths to the store first

This commit is contained in:
Shea Levy 2014-10-18 20:25:55 -04:00
parent d16e3c7f09
commit 0ee1ca628a

View file

@ -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);
}