Skip to content

Commit

Permalink
Merge pull request #27 from chungongyu/dev-c++11
Browse files Browse the repository at this point in the history
fix: coredump fixed
  • Loading branch information
chungongyu committed Jul 13, 2020
2 parents f8d57db + b6d0bd6 commit 7f20688
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
static log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("arcs.main"));

int main(int argc, char* argv[]) {
// Synchronizing iostreams with printf-style I/O can be costly.
// std::cin and std::cout are by default synchronized with printf.
std::ios::sync_with_stdio(false);

if (argc < 2) {
return RunnerManager::get()->help(argc, argv);
}
Expand Down
2 changes: 1 addition & 1 deletion src/preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Preprocess : public Runner {
}

// process
if (*out) {
if (out != NULL) {
Statistics stats;
if ((r = processReads(options, filelist, *out, stats)) == 0) {
// report statistics
Expand Down

0 comments on commit 7f20688

Please sign in to comment.