Fix a crash in handle_display_spec
* src/xdisp.c (handle_display_spec): Check that the cdr of the disable-eval spec is a cons before taking its car. (Bug#41232)
This commit is contained in:
parent
a37290a6f9
commit
48830c73e7
1 changed files with 1 additions and 1 deletions
|
@ -5104,7 +5104,7 @@ handle_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
|
||||||
if (CONSP (spec) && EQ (XCAR (spec), Qdisable_eval))
|
if (CONSP (spec) && EQ (XCAR (spec), Qdisable_eval))
|
||||||
{
|
{
|
||||||
enable_eval = false;
|
enable_eval = false;
|
||||||
spec = XCAR (XCDR (spec));
|
spec = CONSP (XCDR (spec)) ? XCAR (XCDR (spec)) : Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONSP (spec)
|
if (CONSP (spec)
|
||||||
|
|
Loading…
Add table
Reference in a new issue