mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 13:50:16 +01:00
tools: fix coverty "may be used uninitialized" warnings
tools/libevdev-tweak-device.c:390: uninit_use_in_call: Using uninitialized value "changes" when calling "parse_options_abs". tools/libevdev-tweak-device.c:376: warning: 'led' may be used uninitialized in this function tools/libevdev-tweak-device.c:375: warning: 'axis' may be used uninitialized in this function Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
cabe03d8fe
commit
5b13ffb78f
1 changed files with 5 additions and 4 deletions
|
|
@ -372,11 +372,12 @@ main(int argc, char **argv)
|
|||
enum mode mode;
|
||||
const char *path;
|
||||
struct input_absinfo absinfo;
|
||||
int axis;
|
||||
int led;
|
||||
int axis = -1;
|
||||
int led = -1;
|
||||
int led_state = -1;
|
||||
unsigned int changes; /* bitmask of changes */
|
||||
int xres, yres;
|
||||
unsigned int changes = 0; /* bitmask of changes */
|
||||
int xres = 0,
|
||||
yres = 0;
|
||||
|
||||
mode = parse_options_mode(argc, argv, &path);
|
||||
switch (mode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue