* src/xdisp.c (note_mode_line_or_margin_highlight): Initialize
authorJan D <jan.h.d@swipnet.se>
Sun, 7 Nov 2010 11:16:54 +0000 (12:16 +0100)
committerJan D <jan.h.d@swipnet.se>
Sun, 7 Nov 2010 11:16:54 +0000 (12:16 +0100)
Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.

src/ChangeLog
src/xdisp.c

index 9f6a540..92675fc 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xdisp.c (note_mode_line_or_margin_highlight): Initialize
+       Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
+
 2010-11-06  Eli Zaretskii  <eliz@gnu.org>
 
        * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
index b3da465..928a37a 100644 (file)
@@ -25071,10 +25071,8 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y,
   Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
 #ifdef HAVE_WINDOW_SYSTEM
   Display_Info *dpyinfo;
-  Cursor cursor;
-#else
-  Cursor cursor = No_Cursor;
 #endif
+  Cursor cursor = No_Cursor;
   Lisp_Object pointer = Qnil;
   int dx, dy, width, height;
   EMACS_INT charpos;