[gtk+] gdkwindow: Fix potential uses of uninitialised variables
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkwindow: Fix potential uses of uninitialised variables
- Date: Sun, 24 Nov 2013 21:21:11 +0000 (UTC)
commit 86b617094067f90236d67b099a68f7b8f54667ce
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Nov 20 17:20:33 2013 +0000
gdkwindow: Fix potential uses of uninitialised variables
Found with scan-build.
https://bugzilla.gnome.org/show_bug.cgi?id=712760
gdk/gdkwindow.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index f6330e2..63bc225 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2825,7 +2825,7 @@ gdk_window_end_paint (GdkWindow *window)
GdkWindow *composited;
GdkWindowPaint *paint;
GdkWindowImplClass *impl_class;
- GdkRectangle clip_box;
+ GdkRectangle clip_box = { 0, };
cairo_region_t *full_clip;
cairo_t *cr;
@@ -8258,6 +8258,10 @@ get_event_window (GdkDisplay *display,
touch_grab = _gdk_display_has_touch_grab (display, device, sequence, serial);
grab = _gdk_display_get_last_device_grab (display, device);
+ /* Default value. */
+ if (evmask_out)
+ *evmask_out = 0;
+
if (is_touch_type (type) && pointer_emulated)
{
switch (type)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]