emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100634: Fix use of uninitialized


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-23 r100634: Fix use of uninitialized variable (backport from trunk).
Date: Mon, 09 Jan 2012 17:27:02 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 100634
author: Eli Zaretskii <address@hidden>
committer: Chong Yidong <address@hidden>
branch nick: emacs-23
timestamp: Mon 2012-01-09 17:27:02 +0800
message:
  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.
modified:
  src/ChangeLog
  src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-01-09 09:23:36 +0000
+++ b/src/ChangeLog     2012-01-09 09:27:02 +0000
@@ -1,3 +1,9 @@
+2012-01-09  Eli Zaretskii  <address@hidden>
+
+       * 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  <address@hidden>
 
        * dispnew.c (scrolling_window): Truncate overlaps in copy

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2011-09-10 06:54:04 +0000
+++ b/src/xdisp.c       2012-01-09 09:27:02 +0000
@@ -23484,7 +23484,7 @@
      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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]