diff options
author | Ben Burdette <bburdette@gmail.com> | 2021-04-28 09:55:08 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2021-04-28 09:55:08 -0600 |
commit | 57c2dd5d8581f37392df369493b00794b619304e (patch) | |
tree | 3869119965cc9738b81b06d01e85f8692c9496ae /src/nix/repl.cc | |
parent | b466d5195227ca1ce3932e8c0fef0bd5ff8334b1 (diff) |
fixes
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r-- | src/nix/repl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index bb067e935..b1f250e73 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -537,8 +537,8 @@ bool NixRepl::processLine(string line) isVarName(name = removeWhitespace(string(line, 0, p)))) { Expr * e = parseString(string(line, p + 1)); - Value & v(*state->allocValue()); - v.mkThunk(env, e); + Value *v = new Value(*state->allocValue()); + v->mkThunk(env, e); addVarToScope(state->symbols.create(name), v); } else { Value v; |