Skip to content

Commit

Permalink
fix(cxx_extractor): segfault when given nonexistent file (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Nov 8, 2018
1 parent 3bd99ee commit 6c0fef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kythe/cxx/extractor/cxx_extractor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ void KindexWriterSink::OpenIndex(const std::string& hash) {
}

KindexWriterSink::~KindexWriterSink() {
CHECK(!coded_stream_->HadError())
CHECK(!(coded_stream_ && coded_stream_->HadError()))
<< "Errors encountered writing to " << open_path_;
coded_stream_.reset();
gzip_stream_.reset();
Expand Down

0 comments on commit 6c0fef7

Please sign in to comment.