diff --git a/src/exec.cpp b/src/exec.cpp index 33cce87ad..63d90eb0f 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -609,7 +609,7 @@ void exec_job(parser_t &parser, job_t *j) { shared_ptr block_output_io_buffer; // This is the io_streams we pass to internal builtins. - std::auto_ptr builtin_io_streams; + std::unique_ptr builtin_io_streams; switch (p->type) { case INTERNAL_FUNCTION: {