summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev/ftnoir_protocol_libevdev.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-05 01:10:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-05 01:10:05 +0200
commit84d8944f7569bf9e2e8bd7f77a7350630ed51655 (patch)
treee4aad84c40a42fb90c6c70bb98e431ba56e6a585 /proto-libevdev/ftnoir_protocol_libevdev.h
parent860abc8c2a7aeaff029ee5fad65afffc1a377019 (diff)
proto/libevdev: fix wrong error check
Issue: #944
Diffstat (limited to 'proto-libevdev/ftnoir_protocol_libevdev.h')
-rw-r--r--proto-libevdev/ftnoir_protocol_libevdev.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.h b/proto-libevdev/ftnoir_protocol_libevdev.h
index 1a8f2236..34032396 100644
--- a/proto-libevdev/ftnoir_protocol_libevdev.h
+++ b/proto-libevdev/ftnoir_protocol_libevdev.h
@@ -26,8 +26,10 @@ public:
module_status initialize() override;
private:
- struct libevdev* dev;
- struct libevdev_uinput* uidev;
+ struct libevdev* dev = nullptr;
+ struct libevdev_uinput* uidev = nullptr;
+ int error_code = 0;
+ const char* error_expr = nullptr;
};
class LibevdevControls: public IProtocolDialog