Fix use of uninitialized variable (backport from trunk).
authorEli Zaretskii <eliz@gnu.org>
Mon, 9 Jan 2012 09:27:02 +0000 (17:27 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 9 Jan 2012 09:27:02 +0000 (17:27 +0800)
* 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
src/xdisp.c

index d0c89f2..c819bb0 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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  <mituharu@math.s.chiba-u.ac.jp>
 
        * dispnew.c (scrolling_window): Truncate overlaps in copy
index ebd660a..8e5cf3d 100644 (file)
@@ -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;