aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-10-28 20:41:09 +0200
committerEli Zaretskii2011-10-28 20:41:09 +0200
commit5a7a728bb736ee9beea6c30514e0dc95c966de13 (patch)
tree05ece54c80b200ed4b4345bf91d4d94830dd4409 /src
parent52bedd34385bf6434d60d884b306e5883fb656d9 (diff)
downloademacs-5a7a728bb736ee9beea6c30514e0dc95c966de13.tar.gz
emacs-5a7a728bb736ee9beea6c30514e0dc95c966de13.zip
Fix use of uninitialized variable.
src/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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xdisp.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index da0ba4b11f2..fad9b4f9e46 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-10-28 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
4 possible random value that matches one of those tested as
5 condition to clear the mouse face.
6
12011-10-28 Chong Yidong <cyd@gnu.org> 72011-10-28 Chong Yidong <cyd@gnu.org>
2 8
3 * xdisp.c (note_mouse_highlight): Fix use of uninitialized var. 9 * xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
diff --git a/src/xdisp.c b/src/xdisp.c
index 296b2d13219..22f7c2bbd26 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -26801,7 +26801,7 @@ void
26801note_mouse_highlight (struct frame *f, int x, int y) 26801note_mouse_highlight (struct frame *f, int x, int y)
26802{ 26802{
26803 Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); 26803 Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
26804 enum window_part part; 26804 enum window_part part = ON_NOTHING;
26805 Lisp_Object window; 26805 Lisp_Object window;
26806 struct window *w; 26806 struct window *w;
26807 Cursor cursor = No_Cursor; 26807 Cursor cursor = No_Cursor;