mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
fix typo in SndFileDescriptor::open() -- check if file open succeeded.
This commit is contained in:
parent
b8b24e8313
commit
fd5f1ef5f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue