Fix some uninitialized variables

This commit is contained in:
Magnus Norddahl 2020-01-19 15:52:00 +01:00
parent b209b1f960
commit 11cbdb9fef
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ private:
mpg123_handle *MPG123;
bool Done;
MusicIO::FileInterface* Reader;
MusicIO::FileInterface* Reader = nullptr;
static off_t file_lseek(void *handle, off_t offset, int whence);
static ssize_t file_read(void *handle, void *buffer, size_t bytes);

View File

@ -31,7 +31,7 @@ private:
SNDFILE *SndFile;
SF_INFO SndInfo;
MusicIO::FileInterface* Reader;
MusicIO::FileInterface* Reader = nullptr;
static sf_count_t file_get_filelen(void *user_data);
static sf_count_t file_seek(sf_count_t offset, int whence, void *user_data);
static sf_count_t file_read(void *ptr, sf_count_t count, void *user_data);