[gtk+/xi2: 1237/1239] GdkDeviceXI: fix up uninitialized variable usage.



commit 6dfc893dd31ddf0982be5f06f200be114d931c87
Author: Carlos Garnacho <carlos gnome org>
Date:   Mon Sep 28 21:38:26 2009 +0200

    GdkDeviceXI: fix up uninitialized variable usage.

 gdk/x11/gdkdevice-xi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi.c b/gdk/x11/gdkdevice-xi.c
index 805526b..746c797 100644
--- a/gdk/x11/gdkdevice-xi.c
+++ b/gdk/x11/gdkdevice-xi.c
@@ -229,6 +229,7 @@ gdk_device_xi_get_history (GdkDevice      *device,
   if (!device_coords)
     return FALSE;
 
+  *n_events = (guint) n_events_return;
   coords = allocate_history (device, *n_events);
 
   for (i = 0; i < *n_events; i++)
@@ -249,7 +250,6 @@ gdk_device_xi_get_history (GdkDevice      *device,
   XFreeDeviceMotionEvents (device_coords);
 
   *events = coords;
-  *n_events = (guint) n_events_return;
 
   return TRUE;
 }



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