summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/mouse.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2000-05-11 23:43:12 +0000
committermurray <murray@FreeBSD.org>2000-05-11 23:43:12 +0000
commitde093b7d98b1ec4b7c18bead1359bf09bfc7c2ea (patch)
tree7ff69d87e51e5be522f85b8f2e7546b6e1bac593 /usr.sbin/sysinstall/mouse.c
parenteff95a482de9810eac4e02cba20e3fd0f2aed4d4 (diff)
downloadFreeBSD-src-de093b7d98b1ec4b7c18bead1359bf09bfc7c2ea.zip
FreeBSD-src-de093b7d98b1ec4b7c18bead1359bf09bfc7c2ea.tar.gz
Fixed small bug introduced in my last commit.
Approved by: jkh
Diffstat (limited to 'usr.sbin/sysinstall/mouse.c')
-rw-r--r--usr.sbin/sysinstall/mouse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/mouse.c b/usr.sbin/sysinstall/mouse.c
index 0d23a28..574fd72 100644
--- a/usr.sbin/sysinstall/mouse.c
+++ b/usr.sbin/sysinstall/mouse.c
@@ -54,7 +54,10 @@ mousedTest(dialogMenuItem *self)
if (file_readable("/var/run/moused.pid"))
vsystem("kill `cat /var/run/moused.pid`");
systemExecute("vidcontrol -m on");
- vsystem("moused -t %s -p %s %s", type, port, flags);
+ if (flags != NULL)
+ vsystem("moused -t %s -p %s %s", type, port, flags);
+ else
+ vsystem("moused -t %s -p %s", type, port);
ret = msgYesNo("Now move the mouse and see if it works.\n"
"(Note that buttons don't have any effect for now.)\n\n"
OpenPOWER on IntegriCloud