summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-09-18 08:36:01 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-09-18 08:36:01 +0000
commitf3b879c6aa0ea9206c0d6fc554e34daaa8fe3692 (patch)
tree3af80ade293d98814f6366e26b52d7a90a6cf95a /usr.bin
parent04b10274871a4ac0d0f563c8968ab72cc34270e0 (diff)
add forgotten ``return NULL'' when a .wav file fails to get the
device with the required mode
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/aucat/wav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/aucat/wav.c b/usr.bin/aucat/wav.c
index cb28bb290a4..d901ad3f927 100644
--- a/usr.bin/aucat/wav.c
+++ b/usr.bin/aucat/wav.c
@@ -699,6 +699,7 @@ wav_new_in(struct fileops *ops,
#endif
close(fd);
dev_unref(dev);
+ return NULL;
}
f->dev = dev;
if (hdr == HDR_WAV) {
@@ -787,6 +788,7 @@ wav_new_out(struct fileops *ops,
#endif
close(fd);
dev_unref(dev);
+ return NULL;
}
f->dev = dev;
if (hdr == HDR_WAV) {