summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs')
-rw-r--r--lib/rbcodec/codecs/libgme/nsfe_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libgme/nsfe_info.c b/lib/rbcodec/codecs/libgme/nsfe_info.c
index 337b1e580a..e39bb984c2 100644
--- a/lib/rbcodec/codecs/libgme/nsfe_info.c
+++ b/lib/rbcodec/codecs/libgme/nsfe_info.c
@@ -152,6 +152,7 @@ blargg_err_t Info_load( struct Nsfe_Info* this, void* data, long size, struct Ns
{
// read size and tag
byte block_header [2] [4];
+ memset(block_header, 0, sizeof(block_header));
RETURN_ERR( in_read( block_header, sizeof block_header, data, &offset, size ) );
int chunk_size = get_le32( block_header [0] );