diff options
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 938808276..3e7a9e2f3 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -672,7 +672,7 @@ string drainFD(int fd, bool block, const size_t reserveSize) // not care very much about the extra memory. StringSink sink(reserveSize + 2); drainFD(fd, sink, block); - return std::move(*sink.s); + return std::move(sink.s); } @@ -1057,7 +1057,7 @@ std::pair<int, std::string> runProgram(RunOptions && options) status = e.status; } - return {status, std::move(*sink.s)}; + return {status, std::move(sink.s)}; } void runProgram2(const RunOptions & options) |