From 4e2fb5c7623c197c464f348881ac89724191cbd4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 4 Nov 2011 00:11:40 +0200 Subject: [PATCH] Fix bug #9947 with referencing uninitialized variable. src/xdisp.c (note_mouse_highlight): Initialize `area'. --- src/ChangeLog | 2 ++ src/xdisp.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index cc3391cfee5..f198f37d0c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-11-03 Eli Zaretskii + * 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. diff --git a/src/xdisp.c b/src/xdisp.c index 97687f8975b..257e4ad4280 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; -- 2.39.2