From 0f32c069d9b14ed4d5b4fedd502465a696ee6615 Mon Sep 17 00:00:00 2001 From: Murray Stokely Date: Thu, 11 May 2000 23:43:12 +0000 Subject: [PATCH] Fixed small bug introduced in my last commit. Approved by: jkh --- release/sysinstall/mouse.c | 5 ++++- usr.sbin/sysinstall/mouse.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/release/sysinstall/mouse.c b/release/sysinstall/mouse.c index 0d23a2893ceb..574fd7235974 100644 --- a/release/sysinstall/mouse.c +++ b/release/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" diff --git a/usr.sbin/sysinstall/mouse.c b/usr.sbin/sysinstall/mouse.c index 0d23a2893ceb..574fd7235974 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"