Skip to content

Commit

Permalink
fix use after move
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed May 3, 2021
1 parent 77f4261 commit 7c99a7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/parallel.cpp
Expand Up @@ -225,7 +225,8 @@ bool parallel::emitOutput() {
*/
stringstream new_ss;
new_ss << line << '\n';
new_ss << move(parent_ss).str().substr(parent_ss.tellg());
auto cur = parent_ss.tellg();
new_ss << move(parent_ss).str().substr(cur);
parent_ss.swap(new_ss);
return false;
}
Expand Down

0 comments on commit 7c99a7f

Please sign in to comment.