diff options
author | Tomas Carnecky <tom@dbservice.com> | 2009-12-01 01:13:25 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-12-01 09:44:37 +1000 |
commit | 365338032da115e45d6d0d076323f59bc17291b2 (patch) | |
tree | f381a022fd23c76f175e9fa57354036143b42ad2 /src/wcmValidateDevice.c | |
parent | 59754d40db384f0d8cd8880fb07a56f43666a1b4 (diff) | |
download | xf86-input-wacom-365338032da115e45d6d0d076323f59bc17291b2.tar.gz |
Fix a crash that would happen when a sysfs device doesn't exist
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/wcmValidateDevice.c')
-rw-r--r-- | src/wcmValidateDevice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c index 653965d..86156b7 100644 --- a/src/wcmValidateDevice.c +++ b/src/wcmValidateDevice.c @@ -226,8 +226,9 @@ int wcmDeviceTypeKeys(LocalDevicePtr local, unsigned long* keys) /* make sure we fall to default */ if (fscanf(file, "WACf%x\n", &id) <= 0) id = 0; + + fclose(file); } - fclose(file); } /* default to penabled */ |