diff options
| author | Eli Zaretskii | 2011-10-28 20:41:09 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-10-28 20:41:09 +0200 |
| commit | 5a7a728bb736ee9beea6c30514e0dc95c966de13 (patch) | |
| tree | 05ece54c80b200ed4b4345bf91d4d94830dd4409 /src | |
| parent | 52bedd34385bf6434d60d884b306e5883fb656d9 (diff) | |
| download | emacs-5a7a728bb736ee9beea6c30514e0dc95c966de13.tar.gz emacs-5a7a728bb736ee9beea6c30514e0dc95c966de13.zip | |
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.
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 da0ba4b11f2..fad9b4f9e46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-10-28 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 | 2011-10-28 Chong Yidong <cyd@gnu.org> | 7 | 2011-10-28 Chong Yidong <cyd@gnu.org> |
| 2 | 8 | ||
| 3 | * xdisp.c (note_mouse_highlight): Fix use of uninitialized var. | 9 | * xdisp.c (note_mouse_highlight): Fix use of uninitialized var. |
diff --git a/src/xdisp.c b/src/xdisp.c index 296b2d13219..22f7c2bbd26 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -26801,7 +26801,7 @@ void | |||
| 26801 | note_mouse_highlight (struct frame *f, int x, int y) | 26801 | note_mouse_highlight (struct frame *f, int x, int y) |
| 26802 | { | 26802 | { |
| 26803 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); | 26803 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); |
| 26804 | enum window_part part; | 26804 | enum window_part part = ON_NOTHING; |
| 26805 | Lisp_Object window; | 26805 | Lisp_Object window; |
| 26806 | struct window *w; | 26806 | struct window *w; |
| 26807 | Cursor cursor = No_Cursor; | 26807 | Cursor cursor = No_Cursor; |