summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-18 19:41:16 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-18 19:41:16 -0500
commit1f64481933503f9ee12603a2ef076e5e1e987abe (patch)
tree0728d26867ce196c2b049eea542e4b2249ecb3fa
parentbc5c0f97344116cb3d1dca2c9c6356f1b0f59117 (diff)
downloadhorizon-1f64481933503f9ee12603a2ef076e5e1e987abe.tar.gz
horizon-1f64481933503f9ee12603a2ef076e5e1e987abe.tar.bz2
horizon-1f64481933503f9ee12603a2ef076e5e1e987abe.tar.xz
horizon-1f64481933503f9ee12603a2ef076e5e1e987abe.zip
hscript: Don't use value we've already moved out
-rw-r--r--hscript/script.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/hscript/script.cc b/hscript/script.cc
index e877ea6..7d03365 100644
--- a/hscript/script.cc
+++ b/hscript/script.cc
@@ -234,7 +234,8 @@ struct Script::ScriptPrivate {
}
std::unique_ptr<UserDetail> detail(new UserDetail);
detail->name = std::move(name);
- accounts.insert(std::make_pair(name->value(), std::move(detail)));
+ accounts.insert(std::make_pair(detail->name->value(),
+ std::move(detail)));
return true;
}