diff options
| author | Eli Zaretskii | 2012-01-09 17:27:02 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-01-09 17:27:02 +0800 |
| commit | 0c5b9eef72cbb54964d34c28ddffd17a0646bc87 (patch) | |
| tree | 8437ae3dbf4f1dd4f6c93ef6aa5fb7c17332c278 /src | |
| parent | de92a50b9e157cac071355b9836717e62b9edff1 (diff) | |
| download | emacs-0c5b9eef72cbb54964d34c28ddffd17a0646bc87.tar.gz emacs-0c5b9eef72cbb54964d34c28ddffd17a0646bc87.zip | |
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.
Diffstat (limited to 'src')
| -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 d0c89f2e44c..c819bb08369 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-01-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a | ||
| 4 | possible random value that matches one of those tested as | ||
| 5 | condition to clear the mouse face. | ||
| 6 | |||
| 1 | 2012-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 7 | 2012-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 8 | ||
| 3 | * dispnew.c (scrolling_window): Truncate overlaps in copy | 9 | * 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) | |||
| 23484 | int x, y; | 23484 | int x, y; |
| 23485 | { | 23485 | { |
| 23486 | Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 23486 | Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f); |
| 23487 | enum window_part part; | 23487 | enum window_part part = ON_NOTHING; |
| 23488 | Lisp_Object window; | 23488 | Lisp_Object window; |
| 23489 | struct window *w; | 23489 | struct window *w; |
| 23490 | Cursor cursor = No_Cursor; | 23490 | Cursor cursor = No_Cursor; |