libtcc: fix s->include_stack_ptr used uninitialized in tcc_open
This commit is contained in:
parent
77e4679aec
commit
c4eef48025
1 changed files with 1 additions and 0 deletions
1
libtcc.c
1
libtcc.c
|
@ -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() */
|
||||
|
|
Loading…
Reference in a new issue