projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf8a83
)
Fix potential NULL pointer dereference on NS
author
Po Lu
<luangruo@yahoo.com>
Thu, 2 Jun 2022 07:48:12 +0000
(15:48 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Thu, 2 Jun 2022 07:48:12 +0000
(15:48 +0800)
* src/nsterm.m (ns_mouse_position): Don't test f's tooltip-ness
if it's NULL.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 9a23efe3ac1eba3ef3e55bc1ad752f591048a3a1..b7b7bc2ad34924f494863e2447fda20f60487e73 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-2365,7
+2365,7
@@
ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window,
if (!FRAME_NS_P (f))
f = NULL;
- if (FRAME_TOOLTIP_P (f))
+ if (
f &&
FRAME_TOOLTIP_P (f))
f = dpyinfo->last_mouse_frame;
/* While dropping, use the last mouse frame only if there is no