diff options
| author | Paul Eggert | 2014-07-27 19:13:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-07-27 19:13:11 -0700 |
| commit | 168f8e732dcea276214823fea9c309b6b8b679f0 (patch) | |
| tree | 4e003a99c18a940b2377330c5f7c218c87737538 /src | |
| parent | 72c64ae95a0686ba9dd83cf7f63b96b713009ef9 (diff) | |
| download | emacs-168f8e732dcea276214823fea9c309b6b8b679f0.tar.gz emacs-168f8e732dcea276214823fea9c309b6b8b679f0.zip | |
* frame.c (x_set_frame_parameters): Don't use uninitialized locals.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/frame.c | 17 |
2 files changed, 12 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 64c8adae816..b3f3750df75 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-07-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * frame.c (x_set_frame_parameters): Don't use uninitialized locals. | ||
| 4 | |||
| 1 | 2014-07-27 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2014-07-27 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange): | 7 | * nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange): |
diff --git a/src/frame.c b/src/frame.c index 0501b1e2c9c..d32aa0368f0 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -637,7 +637,7 @@ make_frame (bool mini_p) | |||
| 637 | f->column_width = 1; /* !FRAME_WINDOW_P value. */ | 637 | f->column_width = 1; /* !FRAME_WINDOW_P value. */ |
| 638 | f->line_height = 1; /* !FRAME_WINDOW_P value. */ | 638 | f->line_height = 1; /* !FRAME_WINDOW_P value. */ |
| 639 | #ifdef HAVE_WINDOW_SYSTEM | 639 | #ifdef HAVE_WINDOW_SYSTEM |
| 640 | f->vertical_scroll_bar_type = vertical_scroll_bar_none; | 640 | f->vertical_scroll_bar_type = vertical_scroll_bar_none; |
| 641 | f->horizontal_scroll_bars = false; | 641 | f->horizontal_scroll_bars = false; |
| 642 | f->want_fullscreen = FULLSCREEN_NONE; | 642 | f->want_fullscreen = FULLSCREEN_NONE; |
| 643 | #if ! defined (USE_GTK) && ! defined (HAVE_NS) | 643 | #if ! defined (USE_GTK) && ! defined (HAVE_NS) |
| @@ -914,10 +914,10 @@ make_terminal_frame (struct terminal *terminal) | |||
| 914 | FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR; | 914 | FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR; |
| 915 | #endif /* not MSDOS */ | 915 | #endif /* not MSDOS */ |
| 916 | 916 | ||
| 917 | #ifdef HAVE_WINDOW_SYSTEM | 917 | #ifdef HAVE_WINDOW_SYSTEM |
| 918 | f->vertical_scroll_bar_type = vertical_scroll_bar_none; | 918 | f->vertical_scroll_bar_type = vertical_scroll_bar_none; |
| 919 | FRAME_HAS_HORIZONTAL_SCROLL_BARS (f) = false; | 919 | FRAME_HAS_HORIZONTAL_SCROLL_BARS (f) = false; |
| 920 | #endif | 920 | #endif |
| 921 | 921 | ||
| 922 | FRAME_MENU_BAR_LINES (f) = NILP (Vmenu_bar_mode) ? 0 : 1; | 922 | FRAME_MENU_BAR_LINES (f) = NILP (Vmenu_bar_mode) ? 0 : 1; |
| 923 | FRAME_MENU_BAR_HEIGHT (f) = FRAME_MENU_BAR_LINES (f) * FRAME_LINE_HEIGHT (f); | 923 | FRAME_MENU_BAR_HEIGHT (f) = FRAME_MENU_BAR_LINES (f) * FRAME_LINE_HEIGHT (f); |
| @@ -1666,9 +1666,9 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 1666 | fset_buried_buffer_list (f, Qnil); | 1666 | fset_buried_buffer_list (f, Qnil); |
| 1667 | 1667 | ||
| 1668 | free_font_driver_list (f); | 1668 | free_font_driver_list (f); |
| 1669 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) | 1669 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) |
| 1670 | xfree (f->namebuf); | 1670 | xfree (f->namebuf); |
| 1671 | #endif | 1671 | #endif |
| 1672 | xfree (f->decode_mode_spec_buffer); | 1672 | xfree (f->decode_mode_spec_buffer); |
| 1673 | xfree (FRAME_INSERT_COST (f)); | 1673 | xfree (FRAME_INSERT_COST (f)); |
| 1674 | xfree (FRAME_DELETEN_COST (f)); | 1674 | xfree (FRAME_DELETEN_COST (f)); |
| @@ -3203,10 +3203,9 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist) | |||
| 3203 | 3203 | ||
| 3204 | XSETFRAME (frame, f); | 3204 | XSETFRAME (frame, f); |
| 3205 | 3205 | ||
| 3206 | if ((width_change || height_change) | 3206 | if (((width_change && width != FRAME_TEXT_WIDTH (f)) |
| 3207 | && (width != FRAME_TEXT_WIDTH (f) | 3207 | || (height_change && height != FRAME_TEXT_HEIGHT (f))) |
| 3208 | || height != FRAME_TEXT_HEIGHT (f) | 3208 | && (f->new_height || f->new_width)) |
| 3209 | || f->new_height || f->new_width)) | ||
| 3210 | { | 3209 | { |
| 3211 | /* If necessary provide default values for HEIGHT and WIDTH. Do | 3210 | /* If necessary provide default values for HEIGHT and WIDTH. Do |
| 3212 | that here since otherwise a size change implied by an | 3211 | that here since otherwise a size change implied by an |