Fixed possible crash from reference to non-static variable.

Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen 2015-06-22 10:23:42 -07:00
parent c967515da5
commit 1e6f8f5b8c
1 changed files with 1 additions and 1 deletions

View File

@ -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;