From 2a88ec50cd15cf454de99c69d1f7a120ee2368f3 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 20 Mar 2022 09:06:40 -0400 Subject: [COV] metadata module, fix uninit warnings Change-Id: Ifeb22642d7fb683542ff9dcfca0bc58c91ab5f38 --- lib/rbcodec/metadata/mp4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rbcodec/metadata/mp4.c') diff --git a/lib/rbcodec/metadata/mp4.c b/lib/rbcodec/metadata/mp4.c index accc5cd662..19e6b515c7 100644 --- a/lib/rbcodec/metadata/mp4.c +++ b/lib/rbcodec/metadata/mp4.c @@ -195,7 +195,7 @@ static unsigned int read_mp4_length(int fd, uint32_t* size) { unsigned int length = 0; int bytes = 0; - unsigned char c; + unsigned char c = '\0'; do { @@ -211,7 +211,7 @@ static unsigned int read_mp4_length(int fd, uint32_t* size) static bool read_mp4_esds(int fd, struct mp3entry* id3, uint32_t* size) { - unsigned char buf[8]; + unsigned char buf[8] = {0}; bool sbr = false; lseek(fd, 4, SEEK_CUR); /* Version and flags. */ @@ -789,8 +789,8 @@ static bool read_mp4_container(int fd, struct mp3entry* id3, { /* ADDME: add support for real chapters. Right now it's only * used for Nero's gapless hack */ - uint8_t chapters; - uint64_t timestamp; + uint8_t chapters = 0; + uint64_t timestamp = 0; lseek(fd, 8, SEEK_CUR); read_uint8(fd, &chapters); -- cgit v1.2.3