Fixed possible crash from reference to non-static variable.

Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867
Tested: on Linux.
parent c967515d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment