1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 13:10:57 -08:00

Fix crash in ns_mouse_position (bug#45541)

* src/nsterm.m (ns_mouse_position): Explicitly initialize f to NULL.

; Do not merge to master
This commit is contained in:
Alan Third 2021-01-01 10:36:39 +00:00
parent 33d159c36f
commit 3711339f92

View file

@ -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");