mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 09:12:11 +08:00
Fix for incorrect use of shared ptr references
This commit is contained in:
parent
5d75ee7721
commit
c6ec2645dc
4
exec.cpp
4
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()) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user