From 64aa219311bcf7e660fdbdffb078250f6aa5a749 Mon Sep 17 00:00:00 2001 From: ribet Date: Tue, 15 Jun 2010 13:36:35 +0000 Subject: Nouveau paquet 1.0.1, Fix: crash when device unpluged twice --- debian/changelog | 6 ++++++ xinput2_ivy.c | 1 + 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index beebc0e..cc930d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +xinput2-ivy (1.0.1-1) unstable; urgency=low + + * Fix: crash when device unpluged twice + + -- Philippe Ribet Mon, 14 June 2010 10:16:00 +0100 + xinput2-ivy (1.0-1) unstable; urgency=low * Initial Debian release diff --git a/xinput2_ivy.c b/xinput2_ivy.c index 87edba1..8032344 100644 --- a/xinput2_ivy.c +++ b/xinput2_ivy.c @@ -67,6 +67,7 @@ static void init_valuators_definitions (Display *display, XIDeviceInfo* device) valuators_names = calloc(device->num_classes, sizeof(char *)); valuators_min = calloc(device->num_classes, sizeof(double)); valuators_max = calloc(device->num_classes, sizeof(double)); + num_valuators = 0; for (i = 0; i < device->num_classes; i++) { switch(device->classes[i]->type) { case XIButtonClass: -- cgit v1.1