emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117192: * frame.c (x_set_frame_parameters): Don'


From: Paul Eggert
Subject: [Emacs-diffs] emacs-24 r117192: * frame.c (x_set_frame_parameters): Don't read uninitialized storage.
Date: Sun, 01 Jun 2014 18:49:55 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117192
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: emacs-24
timestamp: Sun 2014-06-01 11:49:52 -0700
message:
  * frame.c (x_set_frame_parameters): Don't read uninitialized storage.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/frame.c                    frame.c-20091113204419-o5vbwnq5f7feedwu-243
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-06-01 18:00:56 +0000
+++ b/src/ChangeLog     2014-06-01 18:49:52 +0000
@@ -1,3 +1,7 @@
+2014-06-01  Paul Eggert  <address@hidden>
+
+       * frame.c (x_set_frame_parameters): Don't read uninitialized storage.
+
 2014-06-01  Jan Djärv  <address@hidden>
 
        * xterm.c (xg_scroll_callback): Remove position, for jump set portion

=== modified file 'src/frame.c'
--- a/src/frame.c       2014-03-30 13:31:45 +0000
+++ b/src/frame.c       2014-06-01 18:49:52 +0000
@@ -2794,7 +2794,7 @@
   /* 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.  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]