From 015ab098439452cb798dbea5dd2d4fe57c72808c Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 6 Mar 2018 20:31:14 +0000 Subject: 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 --- sys/dev/atkbdc/psm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/atkbdc') diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c index cb77672ac5a5..0b6a061e15b5 100644 --- a/sys/dev/atkbdc/psm.c +++ b/sys/dev/atkbdc/psm.c @@ -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)) { -- cgit v1.2.3