From 13cd35f6ba3e2c980048ad381e8a5fd1fe550699 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Thu, 19 Jun 2008 23:00:02 +0200 Subject: [PATCH] fix unitialized value warnings Signed-off-by: Pierre Habouzit --- mouse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mouse.c b/mouse.c index 04106ef96..0ca1fda66 100644 --- a/mouse.c +++ b/mouse.c @@ -451,7 +451,7 @@ mouse_client_move(client_t *c, int snap, bool infobox) /* current mouse postion */ int mouse_x, mouse_y; /* last mouse position */ - int last_x, last_y; + int last_x = 0, last_y = 0; /* current layout */ layout_t *layout; /* the infobox */ @@ -716,7 +716,7 @@ mouse_client_resize_tiled(client_t *c) /* current layout */ layout_t *layout; - int mouse_x, mouse_y; + int mouse_x = 0, mouse_y = 0; size_t cursor = CurResize; screen = xutil_screen_get(globalconf.connection, c->phys_screen); @@ -813,7 +813,7 @@ mouse_client_resize_magnified(client_t *c, bool infobox) /* max. distance from the center */ double maxdist; /* mouse position */ - int mouse_x, mouse_y; + int mouse_x = 0, mouse_y = 0; /* cursor while grabbing */ size_t cursor = CurResize; corner_t corner = AutoCorner;