diff options
author | ribet | 2010-06-15 13:36:35 +0000 |
---|---|---|
committer | ribet | 2010-06-15 13:36:35 +0000 |
commit | 64aa219311bcf7e660fdbdffb078250f6aa5a749 (patch) | |
tree | 064fdf029375e91fb384b6585fe9bfe1ad2be060 | |
parent | a7bdcffd4655e2a73956beef41a96397f458c46f (diff) | |
download | xinput2-ivy-64aa219311bcf7e660fdbdffb078250f6aa5a749.zip xinput2-ivy-64aa219311bcf7e660fdbdffb078250f6aa5a749.tar.gz xinput2-ivy-64aa219311bcf7e660fdbdffb078250f6aa5a749.tar.bz2 xinput2-ivy-64aa219311bcf7e660fdbdffb078250f6aa5a749.tar.xz |
Nouveau paquet 1.0.1, Fix: crash when device unpluged twice
-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: |