Fixed possible crash from reference to non-static variable.
Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867 Tested: on Linux.
This commit is contained in:
parent
c967515da5
commit
1e6f8f5b8c
|
@ -1149,7 +1149,7 @@ bool Parser::Parse(const char *source, const char **include_paths,
|
|||
files_being_parsed_.push(source_filename);
|
||||
}
|
||||
if (!include_paths) {
|
||||
const char *current_directory[] = { "", nullptr };
|
||||
static const char *current_directory[] = { "", nullptr };
|
||||
include_paths = current_directory;
|
||||
}
|
||||
source_ = cursor_ = source;
|
||||
|
|
Loading…
Reference in New Issue