summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 1d2ca36..922d5f3 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2054,10 +2054,7 @@ static void EvdevInitAxesLabels(EvdevPtr pEvdev, int natoms, Atom *atoms)
misc_label = AXIS_LABEL_PROP_ABS_MISC;
}
- /* First, make sure all atoms are initialized */
- atom = XIGetKnownProperty(misc_label);
- for (axis = 0; axis < pEvdev->num_vals; axis++)
- atoms[axis] = atom;
+ memset(atoms, 0, natoms * sizeof(Atom));
/* Now fill the ones we know */
for (axis = 0; axis < labels_len; axis++)