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:
ridiculousfish 2013-02-21 12:44:01 -08:00
parent 12095c721c
commit f109d535b1

View file

@ -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;