ref: c5a14126a517f90ae9459645f2747f5d5247df93
parent: 2ed89a6d88755846503bf1d69ab4482dec66f9f4
author: lieff <lieff@users.noreply.github.com>
date: Tue Feb 18 21:37:52 EST 2020
mp3dec_ex: fix -Wmaybe-uninitialized warning on old gcc compilers
--- a/minimp3_ex.h
+++ b/minimp3_ex.h
@@ -230,13 +230,13 @@
return MP3D_E_PARAM;
/* skip id3 */
- size_t filled, consumed;
- int eof, ret = 0;
+ size_t filled = 0, consumed = 0;
+ int eof = 0, ret = 0;
if (io)
{
if (io->seek(0, io->seek_data))
return MP3D_E_IOERROR;
- filled = io->read(buf, MINIMP3_ID3_DETECT_SIZE, io->read_data), consumed = 0, eof = 0;
+ filled = io->read(buf, MINIMP3_ID3_DETECT_SIZE, io->read_data);
if (filled > MINIMP3_ID3_DETECT_SIZE)
return MP3D_E_IOERROR;
if (MINIMP3_ID3_DETECT_SIZE != filled)