[mutter] window: Initialize the result here



commit 59541dfa14bb124dcf2fe00bd2cb99e6608efc32
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Apr 12 10:06:20 2014 -0700

    window: Initialize the result here
    
    The vfuncs simply |= their results into the result variable, so we
    need to make sure we start out with nothing.

 src/core/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index cedd226..c9494be 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4229,7 +4229,7 @@ meta_window_move_resize_internal (MetaWindow          *window,
   MetaRectangle new_rect;
   MetaRectangle old_rect;
   MetaRectangle requested_rect;
-  MetaMoveResizeResultFlags result;
+  MetaMoveResizeResultFlags result = 0;
   MetaFrameBorders borders;
 
   g_return_if_fail (!window->override_redirect);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]