diff --git a/src/io.cpp b/src/io.cpp index a8246504c..51ce05e89 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -306,7 +306,7 @@ maybe_t make_autoclose_pipes(const io_chain_t &ios) { autoclose_pipes_t result; result.read = autoclose_fd_t(pipes[0]); result.write = autoclose_fd_t(pipes[1]); - return result; + return maybe_t{std::move(result)}; } /// Return the last IO for the given fd.