]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix uninitialized variable in note_mouse_highlight (backport from trunk).
authorEli Zaretskii <eliz@gnu.org>
Mon, 9 Jan 2012 09:49:08 +0000 (17:49 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 9 Jan 2012 09:49:08 +0000 (17:49 +0800)
* xdisp.c (note_mouse_highlight): Initialize `area'.  (Bug#9947)

src/ChangeLog
src/xdisp.c

index 7cfb3aa61e1205e2d82f715286a9bd828dec8a53..46d1b292425f488bfafd60b6eb22a446e34649f8 100644 (file)
@@ -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>
 
index ca61947be8ba22e65a76eb92b0270ae5ec45de07..1980ac69c460360a385ed68b9a57dcdf983ab96b 100644 (file)
@@ -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;