Skip to content

Commit

Permalink
Fixup 84c0d2c
Browse files Browse the repository at this point in the history
I am blind. response_buf is used two lines down, so std::move isn't safe.
  • Loading branch information
Vultraz committed Feb 10, 2018
1 parent b5b6783 commit 782f68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addon/client.cpp
Expand Up @@ -88,7 +88,7 @@ bool addons_client::request_addons_list(config& cfg)
this->send_simple_request("request_campaign_list", response_buf);
this->wait_for_transfer_done(_("Downloading list of add-ons..."));

cfg = std::move(response_buf.child("campaigns"));
std::swap(cfg, response_buf.child("campaigns"));

return !this->update_last_error(response_buf);
}
Expand Down

0 comments on commit 782f68c

Please sign in to comment.