[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r106223: Fix use of uninitialized var
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r106223: Fix use of uninitialized variable. |
Date: |
Fri, 28 Oct 2011 20:41:09 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 106223
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2011-10-28 20:41:09 +0200
message:
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.
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-10-28 15:17:09 +0000
+++ b/src/ChangeLog 2011-10-28 18:41:09 +0000
@@ -1,3 +1,9 @@
+2011-10-28 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.
+
2011-10-28 Chong Yidong <address@hidden>
* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2011-10-28 15:17:09 +0000
+++ b/src/xdisp.c 2011-10-28 18:41:09 +0000
@@ -26801,7 +26801,7 @@
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r106223: Fix use of uninitialized variable.,
Eli Zaretskii <=