From 3b9ec3ce50556f2eeefd93c34c4ff855bca6b3a4 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Wed, 22 Sep 2004 18:57:36 +0000 Subject: [PATCH] Fix some uninitialized variable errors reported by valgrind (see #153338) 2004-09-22 Elijah Newren Fix some uninitialized variable errors reported by valgrind (see #153338) * src/display.c (meta_display_open): initialize display->grab_resize_timeout_id, and display->grab_have_keyboard * src/ui.c (meta_ui_create_frame_window): initialize attrs.width and attrs.height --- ChangeLog | 11 +++++++++++ src/display.c | 3 +++ src/ui.c | 3 +++ 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index f384085f2..42739db81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2004-09-22 Elijah Newren + + Fix some uninitialized variable errors reported by valgrind (see + #153338) + + * src/display.c (meta_display_open): initialize + display->grab_resize_timeout_id, and display->grab_have_keyboard + + * src/ui.c (meta_ui_create_frame_window): initialize attrs.width + and attrs.height + 2004-09-17 Elijah Newren * src/workspace.c (meta_workspace_focus_mru_window): Don't focus a diff --git a/src/display.c b/src/display.c index 96183a5e7..73d584bc5 100644 --- a/src/display.c +++ b/src/display.c @@ -501,6 +501,9 @@ meta_display_open (const char *name) display->current_time = CurrentTime; display->sentinel_counter = 0; + + display->grab_resize_timeout_id = 0; + display->grab_have_keyboard = FALSE; display->grab_op = META_GRAB_OP_NONE; display->grab_wireframe_active = FALSE; diff --git a/src/ui.c b/src/ui.c index c8486c5d8..3640cb0ff 100644 --- a/src/ui.c +++ b/src/ui.c @@ -219,6 +219,9 @@ meta_ui_create_frame_window (MetaUI *ui, attrs.wmclass_class = NULL; attrs.override_redirect = FALSE; + attrs.width = width; + attrs.height = height; + attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP; window =