summaryrefslogtreecommitdiff
path: root/xserver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-05-27 00:55:10 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-05-27 00:55:10 +0000
commit94ab87b4bdb96d196618cec8c268ae919597e3d6 (patch)
tree2aef464637060d3fa1a9b36fdee624212ad4cb5e /xserver
parent796aa2f7e2e3d1a753f06f7668810abb7bbfc7ca (diff)
Avoid using an unitialized variable as mouse info.
Diffstat (limited to 'xserver')
-rw-r--r--xserver/hw/kdrive/wscons/mouse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xserver/hw/kdrive/wscons/mouse.c b/xserver/hw/kdrive/wscons/mouse.c
index 033804997..647a0aac3 100644
--- a/xserver/hw/kdrive/wscons/mouse.c
+++ b/xserver/hw/kdrive/wscons/mouse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mouse.c,v 1.2 2007/05/25 19:10:43 matthieu Exp $ */
+/* $OpenBSD: mouse.c,v 1.3 2007/05/27 00:55:09 matthieu Exp $ */
/*
* Copyright (c) 2007 Matthieu Herrb <matthieu@openbsd.org>
*
@@ -42,7 +42,6 @@ MouseRead(int mousePort, void *closure)
{
static struct wscons_event eventList[NUMEVENTS];
struct wscons_event *event = eventList;
- KdMouseInfo *mi;
int n;
n = read(mousePort, &eventList,
@@ -80,7 +79,7 @@ MouseRead(int mousePort, void *closure)
event->type);
continue;
} /* case */
- KdEnqueueMouseEvent(mi, flags, dx, dy);
+ KdEnqueueMouseEvent(kdMouseInfo, flags, dx, dy);
}
}