game-music-emu: Gb_Apu::Gb_Apu(): zero regs to avoid unitialized use in update_volume()

From 4772768ed2fe09b1361d8e01cb82d5f5c2909f6a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 2 Nov 2023 11:33:32 +0300
Subject: [PATCH] Gb_Apu::Gb_Apu(): zero regs to avoid unitialized use in
 update_volume()

---
 gme/Gb_Apu.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gme/Gb_Apu.cpp b/gme/Gb_Apu.cpp
index e066458..8d1a076 100644
--- a/gme/Gb_Apu.cpp
+++ b/gme/Gb_Apu.cpp
@@ -26,6 +26,8 @@ using std::max;
 
 Gb_Apu::Gb_Apu()
 {
+	memset(regs, 0, sizeof(regs));
+	
 	square1.synth = &square_synth;
 	square2.synth = &square_synth;
 	wave.synth  = &other_synth;