summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-05-15 11:12:44 +0200
committerStefano Karapetsas <[email protected]>2013-05-15 11:12:44 +0200
commitb535c86a0adc25ea292b33280af2d0b0be9f3cc4 (patch)
treeb0d340af80b29c5f9c6efc777c78021bd47fc603 /src/core/window.c
parent1450d60b21ab2d20a47dfde8f6ef9f5b952818b9 (diff)
downloadmarco-b535c86a0adc25ea292b33280af2d0b0be9f3cc4.tar.bz2
marco-b535c86a0adc25ea292b33280af2d0b0be9f3cc4.tar.xz
Fix uninitialized variables
Patch from: https://build.opensuse.org/package/view_file?expand=1&file=metacity-uninitialized-variables.patch&package=metacity&project=GNOME%3AFactory
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index bf1b53e4..a1ed1346 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4007,6 +4007,9 @@ meta_window_begin_wireframe (MetaWindow *window)
MetaRectangle new_xor;
int display_width, display_height;
+ display_width = 0;
+ display_height = 0;
+
meta_window_get_client_root_coords (window,
&window->display->grab_wireframe_rect);
@@ -4033,6 +4036,9 @@ meta_window_update_wireframe (MetaWindow *window,
MetaRectangle new_xor;
int display_width, display_height;
+ display_width = 0;
+ display_height = 0;
+
window->display->grab_wireframe_rect.x = x;
window->display->grab_wireframe_rect.y = y;
window->display->grab_wireframe_rect.width = width;