diff options
| author | Paul Eggert | 2013-08-15 09:28:42 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-08-15 09:28:42 -0700 |
| commit | 691a357f3afffc2f40a6f04dea072933dcdf8bc0 (patch) | |
| tree | 84789637fcc308c77de5516e0fd75ea9d2eb71ba /src/frame.c | |
| parent | f196836bc040fc9f36484c4d036a8a71870cdbf7 (diff) | |
| download | emacs-691a357f3afffc2f40a6f04dea072933dcdf8bc0.tar.gz emacs-691a357f3afffc2f40a6f04dea072933dcdf8bc0.zip | |
Fix minor problems found by static checking.
* frame.c (delete_frame):
* xdisp.c (next_element_from_display_vector):
Avoid uninitialized local.
* image.c (imagemagick_compute_animated_image): Port to C89.
Prefer usual GNU indentation style for loops.
Be more careful about bizarrely large sizes, by using ptrdiff_t
instead of int.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 957f08b06c5..5ee001f4d98 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1197,7 +1197,8 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 1197 | /* Don't let the frame remain selected. */ | 1197 | /* Don't let the frame remain selected. */ |
| 1198 | if (f == sf) | 1198 | if (f == sf) |
| 1199 | { | 1199 | { |
| 1200 | Lisp_Object tail, frame1; | 1200 | Lisp_Object tail; |
| 1201 | Lisp_Object frame1 = Qnil; | ||
| 1201 | 1202 | ||
| 1202 | /* Look for another visible frame on the same terminal. | 1203 | /* Look for another visible frame on the same terminal. |
| 1203 | Do not call next_frame here because it may loop forever. | 1204 | Do not call next_frame here because it may loop forever. |