Fixed crash related to flatc parsing duplicate input files.

Thanks @Chaosvex for reporting.

Change-Id: I73f60ab0bf875a3e0849eaec5f42f6d036881094
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2015-11-25 15:50:30 -08:00
parent 947a5b4ea3
commit 1075c80e8a
2 changed files with 4 additions and 6 deletions

View File

@@ -419,7 +419,7 @@ class Parser {
const char *source_, *cursor_;
int line_; // the current line being parsed
int token_;
std::stack<std::string> files_being_parsed_;
std::string files_being_parsed_;
bool proto_mode_;
bool strict_json_;
std::string attribute_;