mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 18:00:37 +01:00
tools: ptraccel-debug: fail for a sequence without events
Found by scan-build, running ptraccel-debug --mode=sequence --nevents=5 would use garbage custom_deltas. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ba922b59ef
commit
3d6ccb57be
1 changed files with 3 additions and 0 deletions
|
|
@ -399,6 +399,9 @@ main(int argc, char **argv)
|
|||
memset(custom_deltas, 0, sizeof(custom_deltas));
|
||||
while (optind < argc)
|
||||
custom_deltas[nevents++] = strtod(argv[optind++], NULL);
|
||||
} else if (mode == SEQUENCE) {
|
||||
usage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
switch (mode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue