summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-06-07 20:13:11 +0200
committerRobin Gareus <robin@gareus.org>2013-06-07 20:14:42 +0200
commitfd5f1ef5f531492ebe13011d8d875fee8eae090d (patch)
treefc83660b8d42813f0e494291718e1ba233452a93 /libs
parentb8b24e831378976dded345ef840f4b9c6e63c223 (diff)
fix typo in SndFileDescriptor::open() -- check if file open succeeded.
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/sndfile_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/sndfile_manager.cc b/libs/pbd/sndfile_manager.cc
index 53e3c5ce00..c53778ac0d 100644
--- a/libs/pbd/sndfile_manager.cc
+++ b/libs/pbd/sndfile_manager.cc
@@ -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);
}