* src/lread.c (Fload): Expand decl’s lifetime to match its use.
Bug found by gcc -fsanitize=address.
specbind (Qinhibit_file_name_operation, Qnil);
specbind (Qload_in_progress, Qt);
+ /* Declare here rather than inside the else-part because the storage
+ might be accessed by the unbind_to call below. */
+ struct infile input;
+
if (is_module)
{
#ifdef HAVE_MODULES
}
else
{
- struct infile input;
input.stream = stream;
input.lookahead = 0;
infile = &input;