Commit ed516dee authored by Eli Zaretskii's avatar Eli Zaretskii Committed by Chong Yidong

Fix uninitialized variable in note_mouse_highlight (backport from trunk).

* xdisp.c (note_mouse_highlight): Initialize `area'.  (Bug#9947)
parent 1ba94341
......@@ -9,9 +9,9 @@
2012-01-09 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
possible random value that matches one of those tested as
condition to clear the mouse face.
* xdisp.c (note_mouse_highlight): Initialize `area'. (Bug#9947)
Initialize `part', to avoid a possible random value that matches
one of those tested as condition to clear the mouse face.
2012-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
......
......@@ -23580,7 +23580,7 @@ note_mouse_highlight (f, x, y)
&& XFASTINT (w->last_modified) == BUF_MODIFF (b)
&& XFASTINT (w->last_overlay_modified) == BUF_OVERLAY_MODIFF (b))
{
int hpos, vpos, pos, i, dx, dy, area;
int hpos, vpos, pos, i, dx, dy, area = LAST_AREA;
struct glyph *glyph;
Lisp_Object object;
Lisp_Object mouse_face = Qnil, overlay = Qnil, position;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment