From: Eli Zaretskii Date: Mon, 9 Jan 2012 09:27:02 +0000 (+0800) Subject: Fix use of uninitialized variable (backport from trunk). X-Git-Tag: emacs-pretest-23.3.90~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0c5b9eef72cbb54964d34c28ddffd17a0646bc87;p=emacs.git Fix use of uninitialized variable (backport from trunk). * 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index d0c89f2e44c..c819bb08369 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-01-09 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. + 2012-01-09 YAMAMOTO Mitsuharu * dispnew.c (scrolling_window): Truncate overlaps in copy diff --git a/src/xdisp.c b/src/xdisp.c index ebd660acc06..8e5cf3d8f3e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -23484,7 +23484,7 @@ note_mouse_highlight (f, x, y) int x, y; { Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f); - enum window_part part; + enum window_part part = ON_NOTHING; Lisp_Object window; struct window *w; Cursor cursor = No_Cursor;