Fix (next-frame nil t) crash (Bug#24281)
* src/frame.c (candidate_frame): Check minibuf argument before comparing it to zero (Bug#24281).
This commit is contained in:
parent
1a1062d6e1
commit
dc491c3df3
1 changed files with 1 additions and 1 deletions
|
@ -1310,7 +1310,7 @@ candidate_frame (Lisp_Object candidate, Lisp_Object frame, Lisp_Object minibuf)
|
|||
FRAME_FOCUS_FRAME (c)))
|
||||
return candidate;
|
||||
}
|
||||
else if (XFASTINT (minibuf) == 0)
|
||||
else if (INTEGERP (minibuf) && XINT (minibuf) == 0)
|
||||
{
|
||||
if (FRAME_VISIBLE_P (c) || FRAME_ICONIFIED_P (c))
|
||||
return candidate;
|
||||
|
|
Loading…
Add table
Reference in a new issue