summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-11-25 18:51:09 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-11-25 18:51:09 +0000
commitc4ead86a275f3c32512535387f89f4ed93f7125b (patch)
tree2f5747b9522b3b111eafda022dba5d957124b88d
parent7236e5707f3063eb299660b68567a871aa5f2cf0 (diff)
fix latest: don't set d->path as we just allocated it
-rw-r--r--usr.bin/sndiod/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 899daee81cb..8a23f6e9e98 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.21 2015/11/25 18:47:12 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.22 2015/11/25 18:51:08 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -988,7 +988,6 @@ dev_new(char *path, struct aparams *par,
*/
d->midi = midi_new(&dev_midiops, d, MODE_MIDIIN | MODE_MIDIOUT);
midi_tag(d->midi, d->num);
- d->path = path;
d->reqpar = *par;
d->reqmode = mode;
d->reqpchan = d->reqrchan = 0;