From 43a21e2acc1d79734f899fba0f51dda67f52bf89 Mon Sep 17 00:00:00 2001 From: Emmanuel Atse Date: Thu, 18 Jul 2013 04:11:35 +0200 Subject: [PATCH] Fixed some uninitialized values --- src/SFML/Audio/SoundFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SFML/Audio/SoundFile.cpp b/src/SFML/Audio/SoundFile.cpp index 5e253274..91db819a 100644 --- a/src/SFML/Audio/SoundFile.cpp +++ b/src/SFML/Audio/SoundFile.cpp @@ -97,6 +97,7 @@ bool SoundFile::openRead(const std::string& filename) // Open the sound file SF_INFO fileInfo; + fileInfo.format = 0; m_file = sf_open(filename.c_str(), SFM_READ, &fileInfo); if (!m_file) { @@ -132,6 +133,7 @@ bool SoundFile::openRead(const void* data, std::size_t sizeInBytes) // Open the sound file SF_INFO fileInfo; + fileInfo.format = 0; m_file = sf_open_virtual(&io, SFM_READ, &fileInfo, &m_memory); if (!m_file) { @@ -169,6 +171,7 @@ bool SoundFile::openRead(InputStream& stream) // Open the sound file SF_INFO fileInfo; + fileInfo.format = 0; m_file = sf_open_virtual(&io, SFM_READ, &fileInfo, &m_stream); if (!m_file) {