From: Eli Zaretskii Date: Thu, 3 Nov 2011 22:11:40 +0000 (+0200) Subject: Fix bug #9947 with referencing uninitialized variable. X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/4e2fb5c7623c197c464f348881ac89724191cbd4 Fix bug #9947 with referencing uninitialized variable. src/xdisp.c (note_mouse_highlight): Initialize `area'. --- diff --git a/src/ChangeLog b/src/ChangeLog index cc3391cfee..f198f37d0c 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 97687f8975..257e4ad428 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;