diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-11-02 12:07:58 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-11-02 12:07:58 +0000 |
commit | 4b5a790c0ab75f5eef9ac0bbd2b7694b75b1755f (patch) | |
tree | 8fd7127cbdb574b9cd4b4388705a3c36f83219a5 /sys/dev | |
parent | ceccb2168e2dbf58fc569c213d8c7dd4e2eb885f (diff) |
Don't OR flags into an uninitialized variable in elantech hardware v1 code.
Fix by oga, via mikeb.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pckbc/pms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index 297d338033b..da16e12c803 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.32 2012/10/29 11:54:45 stsp Exp $ */ +/* $OpenBSD: pms.c,v 1.33 2012/11/02 12:07:57 stsp Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -1955,7 +1955,7 @@ void pms_proc_elantech_v1(struct pms_softc *sc) { struct elantech_softc *elantech = sc->elantech; - u_int buttons; + u_int buttons = 0; int x, y, w, z; if (elantech->flags & ELANTECH_F_HW_V1_OLD) |