diff --git a/src/option_types.hh b/src/option_types.hh index aae25dde..0617a183 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -142,7 +142,7 @@ bool option_add(HashMap& opt, StringView str) HashItem item; option_from_string(key_value[0], item.key); option_from_string(key_value[1], item.value); - opt.insert(std::move(item)); + opt[std::move(item.key)] = std::move(item.value); changed = true; } return changed;