From 3711339f92be0c50633aefae991d8fa4a135fe33 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Fri, 1 Jan 2021 10:36:39 +0000 Subject: Fix crash in ns_mouse_position (bug#45541) * src/nsterm.m (ns_mouse_position): Explicitly initialize f to NULL. ; Do not merge to master --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3