diff options
-rw-r--r-- | src/libcmd/command.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc index cc353cbb4..e3c8fb29f 100644 --- a/src/libcmd/command.cc +++ b/src/libcmd/command.cc @@ -164,7 +164,7 @@ ref<EvalState> EvalCommand::getEvalState() if (expr.staticenv) { - auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env); + std::unique_ptr<valmap> vm(mapStaticEnvBindings(*expr.staticenv.get(), env)); runRepl(evalState, error, expr, *vm); } }; |