Commit 16e62077 authored by Martin Rudalics's avatar Martin Rudalics Committed by Eli Zaretskii

Fix (next-frame nil t) crash (Bug#24281)

* src/frame.c (candidate_frame): Check minibuf argument before
comparing it to zero (Bug#24281).

This was backported from master
(cherry picked from commit dc491c3d)
parent 3f539c00
......@@ -1308,7 +1308,7 @@ candidate_frame (Lisp_Object candidate, Lisp_Object frame, Lisp_Object minibuf)
return candidate;
else if (XFASTINT (minibuf) == 0)
else if (INTEGERP (minibuf) && XINT (minibuf) == 0)
return candidate;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment