[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100638: Fix uninitialized variabl
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100638: Fix uninitialized variable in note_mouse_highlight (backport from trunk). |
Date: |
Mon, 09 Jan 2012 17:49:08 +0800 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 100638
author: Eli Zaretskii <address@hidden>
committer: Chong Yidong <address@hidden>
branch nick: emacs-23
timestamp: Mon 2012-01-09 17:49:08 +0800
message:
Fix uninitialized variable in note_mouse_highlight (backport from trunk).
* xdisp.c (note_mouse_highlight): Initialize `area'. (Bug#9947)
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-01-09 09:44:18 +0000
+++ b/src/ChangeLog 2012-01-09 09:49:08 +0000
@@ -9,9 +9,9 @@
2012-01-09 Eli Zaretskii <address@hidden>
- * 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 <address@hidden>
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2012-01-09 09:44:18 +0000
+++ b/src/xdisp.c 2012-01-09 09:49:08 +0000
@@ -23580,7 +23580,7 @@
&& 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-23 r100638: Fix uninitialized variable in note_mouse_highlight (backport from trunk).,
Chong Yidong <=