diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-05-05 01:10:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-05-05 01:10:05 +0200 |
commit | 84d8944f7569bf9e2e8bd7f77a7350630ed51655 (patch) | |
tree | e4aad84c40a42fb90c6c70bb98e431ba56e6a585 /proto-libevdev/ftnoir_protocol_libevdev.h | |
parent | 860abc8c2a7aeaff029ee5fad65afffc1a377019 (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.h | 6 |
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 |