]> code.delx.au - gnu-emacs/commitdiff
* frame.c (x_set_frame_parameters): Don't read uninitialized storage.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Jun 2014 18:49:52 +0000 (11:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Jun 2014 18:49:52 +0000 (11:49 -0700)
src/ChangeLog
src/frame.c

index 781e29dd30816a42fea8533650f51d3aa2812d9c..07d2b5bd6438a3302410f97fa8896f1e67a3b794 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * frame.c (x_set_frame_parameters): Don't read uninitialized storage.
+
 2014-06-01  Jan Djärv  <jan.h.d@swipnet.se>
 
        * xterm.c (xg_scroll_callback): Remove position, for jump set portion
index c5a2f6ab245dbcf66495c2b3d09295d4a160174c..35c926ce7ef8dd38e27f87ca0c8a264757de8c09 100644 (file)
@@ -2794,7 +2794,7 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist)
   /* If both of these parameters are present, it's more efficient to
      set them both at once.  So we wait until we've looked at the
      entire list before we set them.  */
-  int width, height;
+  int width = 0, height = 0;
   bool width_change = 0, height_change = 0;
 
   /* Same here.  */