diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-01-09 17:27:02 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-01-09 17:27:02 +0800 |
commit | c95bae65ee2b51185feaf1de198dcadf719f8052 (patch) | |
tree | 25c9947c683ea5007978128aa87b5f92813e4168 | |
parent | 814f23241ee49931c8bfff375a46fbb04c3ec4af (diff) | |
download | emacs-c95bae65ee2b51185feaf1de198dcadf719f8052.tar.gz |
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.
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c4a08bf0793..3730689e067 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 diff --git a/src/xdisp.c b/src/xdisp.c index ebd660acc06..8e5cf3d8f3e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; |