summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-07-10 11:56:29 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-07-10 11:56:29 +0000
commitd1b7b0f34d441758e4b123f731d5425b59658a8f (patch)
treed96f25a1be090e0e8d702d6c99f4f2970bb2fee9 /usr.bin
parent985eb25af5a2076853f8edbe6bb59e57cf49f5fd (diff)
fix parameter handling: don't try to open a ``default'' midi port
if no files are given on the command line
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/aucat/aucat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 81f2646a512..5a0b31c63bb 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.99 2010/07/06 10:45:01 jmc Exp $ */
+/* $OpenBSD: aucat.c,v 1.100 2010/07/10 11:56:28 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -966,7 +966,7 @@ midicat_main(int argc, char **argv)
*/
if (SLIST_EMPTY(&cfdevs)) {
if (SLIST_EMPTY(&cd->mids)) {
- if (SLIST_EMPTY(&cd->ins) && SLIST_EMPTY(&cd->outs))
+ if (!SLIST_EMPTY(&cd->ins) || !SLIST_EMPTY(&cd->outs))
cfmid_add(&cd->mids, "default");
else {
cfstr_add(&cd->opts, cs, DEFAULT_OPT);