mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Add a null check to avoid passing null to io_chain_t::push_back
https://github.com/fish-shell/fish-shell/issues/590
This commit is contained in:
parent
12095c721c
commit
f109d535b1
1 changed files with 4 additions and 2 deletions
|
@ -1560,8 +1560,10 @@ void parser_t::parse_job_argument_list(process_t *p,
|
|||
new_io.reset(new_io_file);
|
||||
}
|
||||
}
|
||||
|
||||
j->io.push_back(new_io);
|
||||
|
||||
if (new_io.get() != NULL) {
|
||||
j->io.push_back(new_io);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue