[mutter] window: Placate new gcc
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Placate new gcc
- Date: Thu, 23 Oct 2014 23:04:53 +0000 (UTC)
commit b3544f8ec17a8282d9d226dd170e241cef9e8d6c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Oct 23 16:03:46 2014 -0700
window: Placate new gcc
It thinks remaining can be used uninitialized. It's wrong, but let's
help it out by initializing the variable.
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 8ef7581..7a5ea20 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5851,7 +5851,7 @@ update_resize (MetaWindow *window,
int new_w, new_h;
int gravity;
MetaRectangle old;
- double remaining;
+ double remaining = 0;
MetaMaximizeFlags new_unmaximize;
window->display->grab_latest_motion_x = x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]