aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 917602a..bf5ebe0 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -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));