diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-11-04 00:11:40 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-11-04 00:11:40 +0200 |
commit | 4e2fb5c7623c197c464f348881ac89724191cbd4 (patch) | |
tree | f24f9ee9819993129031d27a6dc54eb57f97078c /src | |
parent | 2a58bbc1830abaf7b51cb9d94df884dc92071ddf (diff) | |
download | emacs-4e2fb5c7623c197c464f348881ac89724191cbd4.tar.gz |
Fix bug #9947 with referencing uninitialized variable.
src/xdisp.c (note_mouse_highlight): Initialize `area'.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 2 | ||||
-rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <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. 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; |