diff options
author | 2013-06-16 12:51:49 -0700 | |
---|---|---|
committer | 2013-06-16 12:51:49 -0700 | |
commit | c6ec2645dce59acdb2a8b659c84e2fc1aee19882 (patch) | |
tree | 0617672cd8eabece4ab00c8984b56648c1ee72c8 /exec.cpp | |
parent | 5d75ee7721d9bd09e38375caa3ab2394246c0f3d (diff) |
Fix for incorrect use of shared ptr references
Diffstat (limited to 'exec.cpp')
-rw-r--r-- | exec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1196,8 +1196,8 @@ void exec(parser_t &parser, job_t *j) performance quite a bit in complex completion code. */ - const shared_ptr<io_data_t> &stdout_io = io_chain_get(j->io, STDOUT_FILENO); - const shared_ptr<io_data_t> &stderr_io = io_chain_get(j->io, STDERR_FILENO); + const shared_ptr<io_data_t> stdout_io = io_chain_get(j->io, STDOUT_FILENO); + const shared_ptr<io_data_t> stderr_io = io_chain_get(j->io, STDERR_FILENO); const bool buffer_stdout = stdout_io && stdout_io->io_mode == IO_BUFFER; if ((get_stderr_buffer().empty()) && |