]> git.eshelyaron.com Git - emacs.git/commit
* frame.c (x_set_frame_parameters): Don't use uninitialized locals.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Jul 2014 13:55:12 +0000 (06:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Jul 2014 13:55:12 +0000 (06:55 -0700)
commitf3655f35ccd5a56c158a5db399c5f168b2e928d0
treee6d0df24569c82f049fe15a6919edf4907f9c758
parentdef546a8b82f60478c780bf3cbdbceedcf7a2ccd
* frame.c (x_set_frame_parameters): Don't use uninitialized locals.

Without this change, the code can access the local variable 'width'
even when it has not been initialized, and likewise for 'height';
in either case this leads to undefined behavior.
src/ChangeLog
src/frame.c