Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a null check to avoid passing null to io_chain_t::push_back

  • Loading branch information...
commit f109d535b1fdc50c21e90aff05fef6e5f6950952 1 parent 12095c7
@ridiculousfish ridiculousfish authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 parser.cpp
View
6 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;
Please sign in to comment.
Something went wrong with that request. Please try again.