libtcc: fix s->include_stack_ptr used uninitialized in tcc_open

master
grischka 2010-11-26 20:46:25 +01:00
parent 77e4679aec
commit c4eef48025
1 changed files with 1 additions and 0 deletions

View File

@ -885,6 +885,7 @@ LIBTCCAPI TCCState *tcc_new(void)
#endif
s->output_type = TCC_OUTPUT_MEMORY;
preprocess_new();
s->include_stack_ptr = s->include_stack;
/* we add dummy defines for some special macros to speed up tests
and to have working defined() */