Avoid crashes in semi-malformed 'condition-case'
* src/eval.c (internal_lisp_condition_case): Treat a handler '(nil)' as if it were '(nil nil)'. (Bug#22675)
This commit is contained in:
parent
652e5b49d9
commit
44b16f60fd
1 changed files with 1 additions and 1 deletions
|
@ -1245,7 +1245,7 @@ internal_lisp_condition_case (volatile Lisp_Object var, Lisp_Object bodyform,
|
|||
for (i = 0; i < clausenb; i++)
|
||||
{
|
||||
Lisp_Object clause = clauses[i];
|
||||
Lisp_Object condition = XCAR (clause);
|
||||
Lisp_Object condition = CONSP (clause) ? XCAR (clause) : Qnil;
|
||||
if (!CONSP (condition))
|
||||
condition = Fcons (condition, Qnil);
|
||||
struct handler *c = push_handler (condition, CONDITION_CASE);
|
||||
|
|
Loading…
Add table
Reference in a new issue