[gtk+] Initialize variables
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Initialize variables
- Date: Sat, 24 Jan 2015 21:45:57 +0000 (UTC)
commit b6551c84c9fcd1c63f4fe8055e016f41cf7c4985
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 24 16:45:04 2015 -0500
Initialize variables
No need to risk valgrind complaints about initialized
values.
https://bugzilla.gnome.org/show_bug.cgi?id=743422
gdk/gdkwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b791066..6960cae 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -4661,6 +4661,8 @@ gdk_window_get_device_position_double (GdkWindow *window,
g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
g_return_val_if_fail (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD, NULL);
+ tmp_x = tmp_y = 0;
+ tmp_mask = 0;
normal_child = GDK_WINDOW_IMPL_GET_CLASS (window->impl)->get_device_state (window,
device,
&tmp_x, &tmp_y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]