* src/eval.c (Fdefvar): Don't call XSYMBOL on something that
might not be a symbol. This avoids crashes due to malformed
'defvar' forms. (Bug#32552)
LOADHIST_ATTACH (sym);
}
else if (!NILP (Vinternal_interpreter_environment)
- && !XSYMBOL (sym)->u.s.declared_special)
+ && (SYMBOLP (sym) && !XSYMBOL (sym)->u.s.declared_special))
/* A simple (defvar foo) with lexical scoping does "nothing" except
declare that var to be dynamically scoped *locally* (i.e. within
the current file or let-block). */