diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-09-18 08:36:01 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-09-18 08:36:01 +0000 |
commit | f3b879c6aa0ea9206c0d6fc554e34daaa8fe3692 (patch) | |
tree | 3af80ade293d98814f6366e26b52d7a90a6cf95a /usr.bin/aucat/wav.c | |
parent | 04b10274871a4ac0d0f563c8968ab72cc34270e0 (diff) |
add forgotten ``return NULL'' when a .wav file fails to get the
device with the required mode
Diffstat (limited to 'usr.bin/aucat/wav.c')
-rw-r--r-- | usr.bin/aucat/wav.c | 2 |
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) { |