diff src/dispnew.c @ 95639:2c12b44a3dfc

(Flast_nonminibuf_frame): Handle the NULL case.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 07 Jun 2008 13:52:12 +0000
parents 9a4b27c8feec
children 8a7483c32b73
line wrap: on
line diff
--- a/src/dispnew.c	Sat Jun 07 12:43:11 2008 +0000
+++ b/src/dispnew.c	Sat Jun 07 13:52:12 2008 +0000
@@ -7066,9 +7066,10 @@
        doc: /* Value is last nonminibuffer frame. */)
      ()
 {
-  Lisp_Object frame;
-
-  XSETFRAME (frame, last_nonminibuf_frame);
+  Lisp_Object frame = Qnil;
+
+  if (last_nonminibuf_frame)
+    XSETFRAME (frame, last_nonminibuf_frame);
 
   return frame;
 }