summaryrefslogtreecommitdiff
path: root/ps2comm.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-09-28 20:28:18 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:14 +0200
commita83a851935e5e15048cb1b8b458946604410ec7b (patch)
treec718fd4151b39563c78e3c8b489bb0d36808fc63 /ps2comm.c
parent387932425d6fe3967233d5e0c0d61fcc086287e1 (diff)
Initialize the id variable in QueryIsSynaptics(), so that we
don't print out garbage if the identification fails.
Diffstat (limited to 'ps2comm.c')
-rw-r--r--ps2comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ps2comm.c b/ps2comm.c
index ad91fcf..814ecaf 100644
--- a/ps2comm.c
+++ b/ps2comm.c
@@ -332,7 +332,7 @@ SynapticsDisableDevice(int fd)
Bool
QueryIsSynaptics(int fd)
{
- unsigned long id;
+ unsigned long id = 0;
int i;
for (i = 0; i < 3; i++) {