summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-08-15 09:28:42 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-08-15 09:28:42 -0700
commit691a357f3afffc2f40a6f04dea072933dcdf8bc0 (patch)
tree84789637fcc308c77de5516e0fd75ea9d2eb71ba /src/frame.c
parentf196836bc040fc9f36484c4d036a8a71870cdbf7 (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index 957f08b06c..5ee001f4d9 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1197,7 +1197,8 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
/* Don't let the frame remain selected. */
if (f == sf)
{
- Lisp_Object tail, frame1;
+ Lisp_Object tail;
+ Lisp_Object frame1 = Qnil;
/* Look for another visible frame on the same terminal.
Do not call next_frame here because it may loop forever.