diff options
author | Sampo Savolainen <v2@iki.fi> | 2009-06-14 14:40:03 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2009-06-14 14:40:03 +0000 |
commit | e0ca99938e9449578e03bb2c854be550d1414296 (patch) | |
tree | d3a55a545a3217865c526896e5b824135b3a62ab /libs | |
parent | 05a4874f24a35ea61cb5928b6d691965fdf4adac (diff) |
Fix small problem with uninitialized data fed to sndfile
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5188 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/sndfileimportable.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/sndfileimportable.cc b/libs/ardour/sndfileimportable.cc index 5cd00a8e96..fae4dea716 100644 --- a/libs/ardour/sndfileimportable.cc +++ b/libs/ardour/sndfileimportable.cc @@ -6,8 +6,9 @@ using namespace ARDOUR; using namespace std; SndFileImportableSource::SndFileImportableSource (const string& path) - : in (sf_open (path.c_str(), SFM_READ, &sf_info), sf_close) { + memset(&sf_info, 0 , sizeof(sf_info)); + in.reset( sf_open(path.c_str(), SFM_READ, &sf_info), sf_close); if (!in) throw failed_constructor(); } |