mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
36cbb006f2
commit
015ab09843
1 changed files with 3 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue