From 1e6f8f5b8c4d0407d7db750858e7863e07091958 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Mon, 22 Jun 2015 10:23:42 -0700 Subject: [PATCH] Fixed possible crash from reference to non-static variable. Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867 Tested: on Linux. --- src/idl_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 2ed401b77..e2afe7fa1 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -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;