diff options
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | xinput2_ivy.c | 1 |
2 files changed, 7 insertions, 0 deletions
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 <ribet@cena.fr> 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: |