From: Alan Third Date: Fri, 1 Jan 2021 10:36:39 +0000 (+0000) Subject: Fix crash in ns_mouse_position (bug#45541) X-Git-Tag: emacs-27.1.91~32 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3711339f92be0c50633aefae991d8fa4a135fe33;p=emacs.git Fix crash in ns_mouse_position (bug#45541) * src/nsterm.m (ns_mouse_position): Explicitly initialize f to NULL. ; Do not merge to master --- diff --git a/src/nsterm.m b/src/nsterm.m index b75c6c7ef56..b8658a05daf 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2480,7 +2480,7 @@ ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, id view; NSPoint view_position; Lisp_Object frame, tail; - struct frame *f; + struct frame *f = NULL; struct ns_display_info *dpyinfo; NSTRACE ("ns_mouse_position");