emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master dc491c3 1/2: Fix (next-frame nil t) crash (Bug#2428


From: Martin Rudalics
Subject: [Emacs-diffs] master dc491c3 1/2: Fix (next-frame nil t) crash (Bug#24281)
Date: Mon, 22 Aug 2016 06:59:29 +0000 (UTC)

branch: master
commit dc491c3df305a73908fe8de20b7c428a5b38c846
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Fix (next-frame nil t) crash (Bug#24281)
    
    * src/frame.c (candidate_frame): Check minibuf argument before
    comparing it to zero (Bug#24281).
---
 src/frame.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frame.c b/src/frame.c
index e17c8ac..2dbbb37 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]