bytecmp: don't leave c_env->lex_env uninitialized

Was previously only initialized in si_eval_with_env. Due to the
introduction of si_bc_compile_from_stream, it was used uninitialized
in this new function, leading to segfaults.
This commit is contained in:
Marius Gerbershagen 2021-01-16 19:08:50 +01:00
parent 194a9e0eab
commit 2985758cd3

View file

@ -547,6 +547,7 @@ c_new_env(cl_env_ptr the_env, cl_compiler_env_ptr new, cl_object env,
ECL_NIL, /* displacement */
ECL_NIL);
new->stepping = 0;
new->lex_env = ECL_NIL;
new->lexical_level = 0;
new->load_time_forms = ECL_NIL;
new->ltf_being_created = ECL_NIL;