diff options
author | Alan Third <alan@idiocy.org> | 2021-01-01 10:36:39 +0000 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2021-01-01 10:36:39 +0000 |
commit | 3711339f92be0c50633aefae991d8fa4a135fe33 (patch) | |
tree | 03841e0d55c434100e1d6eb2917a9e47ae25d7c6 | |
parent | 33d159c36f42cadccb02d95099bafac26458d3e8 (diff) | |
download | emacs-3711339f92be0c50633aefae991d8fa4a135fe33.tar.gz |
Fix crash in ns_mouse_position (bug#45541)
* src/nsterm.m (ns_mouse_position): Explicitly initialize f to NULL.
; Do not merge to master
-rw-r--r-- | src/nsterm.m | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |