From de093b7d98b1ec4b7c18bead1359bf09bfc7c2ea Mon Sep 17 00:00:00 2001 From: murray Date: Thu, 11 May 2000 23:43:12 +0000 Subject: Fixed small bug introduced in my last commit. Approved by: jkh --- usr.sbin/sysinstall/mouse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall/mouse.c') 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" -- cgit v1.1