diff --git a/parser.cpp b/parser.cpp index b592ed9bf..529550d79 100644 --- a/parser.cpp +++ b/parser.cpp @@ -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;