Fix bug #9947 with referencing uninitialized variable.
authorEli Zaretskii <eliz@gnu.org>
Thu, 3 Nov 2011 22:11:40 +0000 (00:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 3 Nov 2011 22:11:40 +0000 (00:11 +0200)
 src/xdisp.c (note_mouse_highlight): Initialize `area'.

src/ChangeLog
src/xdisp.c

index cc3391c..f198f37 100644 (file)
@@ -1,5 +1,7 @@
 2011-11-03  Eli Zaretskii  <eliz@gnu.org>
 
+       * xdisp.c (note_mouse_highlight): Initialize `area'.  (Bug#9947)
+
        * w32fns.c (unwind_create_frame): If needed, free the glyph
        matrices of the partially constructed frame.  (Bug#9943)
        * xfns.c (unwind_create_frame): Likewise.
index 97687f8..257e4ad 100644 (file)
@@ -26892,7 +26892,7 @@ note_mouse_highlight (struct frame *f, int x, int y)
       && XFASTINT (w->last_modified) == BUF_MODIFF (b)
       && XFASTINT (w->last_overlay_modified) == BUF_OVERLAY_MODIFF (b))
     {
-      int hpos, vpos, dx, dy, area;
+      int hpos, vpos, dx, dy, area = LAST_AREA;
       EMACS_INT pos;
       struct glyph *glyph;
       Lisp_Object object;