mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-25 02:09:22 +00:00
Exit axis labelling if axes are neither rel nor abs
No actual effect since labels_len is always 0 anyway but let's make the return more explicit. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -2201,7 +2201,8 @@ static void EvdevInitAxesLabels(EvdevPtr pEvdev, int natoms, Atom *atoms)
|
||||
{
|
||||
labels = rel_labels;
|
||||
labels_len = ArrayLength(rel_labels);
|
||||
}
|
||||
} else
|
||||
return;
|
||||
|
||||
memset(atoms, 0, natoms * sizeof(Atom));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user