fix typo in SndFileDescriptor::open() -- check if file open succeeded.
This commit is contained in:
parent
b8b24e8313
commit
fd5f1ef5f5
@ -121,7 +121,7 @@ SndFileDescriptor::open ()
|
||||
|
||||
_sndfile = sf_open_fd (fd, _writeable ? SFM_RDWR : SFM_READ, _info, 1);
|
||||
|
||||
if (sf_open_fd == 0) {
|
||||
if (_sndfile == 0) {
|
||||
::close(fd);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user