aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-06-16 12:51:49 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-06-16 12:51:49 -0700
commitc6ec2645dce59acdb2a8b659c84e2fc1aee19882 (patch)
tree0617672cd8eabece4ab00c8984b56648c1ee72c8 /exec.cpp
parent5d75ee7721d9bd09e38375caa3ab2394246c0f3d (diff)
Fix for incorrect use of shared ptr references
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.cpp b/exec.cpp
index 82261b18..0f4a6fa3 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -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()) &&