13
0

fix typo in SndFileDescriptor::open() -- check if file open succeeded.

This commit is contained in:
Robin Gareus 2013-06-07 20:13:11 +02:00
parent b8b24e8313
commit fd5f1ef5f5

View File

@ -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);
}