Commit 5a7a728b authored by Eli Zaretskii's avatar Eli Zaretskii

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.
parent 52bedd34
2011-10-28 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.
2011-10-28 Chong Yidong <cyd@gnu.org>
* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment