psm(4): Initialize variables before use

dxp/dyp could have been used uninitialized in the subsequent debugging log
invocation.

Reported by:	Coverity
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2018-03-06 20:31:14 +00:00
parent 36cbb006f2
commit 015ab09843

View file

@ -3781,6 +3781,9 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, int nfingers,
if (queue_len < gest->window_min)
return;
dyp = -1;
dxp = -1;
/* Is a scrolling action occurring? */
if (!gest->in_taphold && !ms->button &&
(!gest->in_vscroll || two_finger_scroll)) {