[gtk+/gtk-3-14] Initialize variables
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] Initialize variables
- Date: Sat, 31 Jan 2015 19:26:46 +0000 (UTC)
commit a096820883da6932d2d103565c853e29e6ae503a
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 b6ac2d9..264a051 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -4367,6 +4367,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]