From 5a7a728bb736ee9beea6c30514e0dc95c966de13 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 28 Oct 2011 20:41:09 +0200 Subject: [PATCH] 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. --- src/ChangeLog | 6 ++++++ src/xdisp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index da0ba4b11f2..fad9b4f9e46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-10-28 Eli Zaretskii + + * 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. + 2011-10-28 Chong Yidong * 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 note_mouse_highlight (struct frame *f, int x, int y) { Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); - enum window_part part; + enum window_part part = ON_NOTHING; Lisp_Object window; struct window *w; Cursor cursor = No_Cursor; -- 2.11.4.GIT