mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Fix for incorrect use of shared ptr references
This commit is contained in:
parent
5d75ee7721
commit
c6ec2645dc
1 changed files with 2 additions and 2 deletions
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.
|
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> 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> stderr_io = io_chain_get(j->io, STDERR_FILENO);
|
||||||
const bool buffer_stdout = stdout_io && stdout_io->io_mode == IO_BUFFER;
|
const bool buffer_stdout = stdout_io && stdout_io->io_mode == IO_BUFFER;
|
||||||
|
|
||||||
if ((get_stderr_buffer().empty()) &&
|
if ((get_stderr_buffer().empty()) &&
|
||||||
|
|
Loading…
Reference in a new issue