mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-15 05:20:06 +08:00
libtcc: fix s->include_stack_ptr used uninitialized in tcc_open
This commit is contained in:
parent
77e4679aec
commit
c4eef48025
1
libtcc.c
1
libtcc.c
@ -885,6 +885,7 @@ LIBTCCAPI TCCState *tcc_new(void)
|
|||||||
#endif
|
#endif
|
||||||
s->output_type = TCC_OUTPUT_MEMORY;
|
s->output_type = TCC_OUTPUT_MEMORY;
|
||||||
preprocess_new();
|
preprocess_new();
|
||||||
|
s->include_stack_ptr = s->include_stack;
|
||||||
|
|
||||||
/* we add dummy defines for some special macros to speed up tests
|
/* we add dummy defines for some special macros to speed up tests
|
||||||
and to have working defined() */
|
and to have working defined() */
|
||||||
|
Loading…
Reference in New Issue
Block a user