Fix seg fault when parsing:

%inline {
and no closing brace


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-05-17 20:16:21 +00:00
commit beb007b72c

View file

@ -23,7 +23,7 @@ typedef struct InFile {
struct InFile *prev;
} InFile;
InFile *in_head;
static InFile *in_head;
DOHFile *LEX_in = 0;
static DOHString *header = 0;
@ -262,6 +262,7 @@ void retract(int n) {
void start_inline(char *text, int line) {
InFile *in;
if (!in_head) return;
/* Save current state */
in_head->line_number = cparse_line;
in_head->in_file = cparse_file;