aboutsummaryrefslogtreecommitdiff
path: root/src/dbopl.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2016-12-07 18:31:24 +0300
committerWohlstand <admin@wohlnet.ru>2016-12-07 18:31:24 +0300
commit46b4bbe9eafdf720809ef385de2efb4433905406 (patch)
tree7199825ade1c2470f505fe0fe5417d6253e6d61c /src/dbopl.cpp
parentbba6c868211b1e88180365a339b5bf59a6fb2637 (diff)
downloadlibADLMIDI-46b4bbe9eafdf720809ef385de2efb4433905406.tar.gz
libADLMIDI-46b4bbe9eafdf720809ef385de2efb4433905406.tar.bz2
libADLMIDI-46b4bbe9eafdf720809ef385de2efb4433905406.zip
Fixed another crash and dealing with uninitialized memory
Diffstat (limited to 'src/dbopl.cpp')
-rw-r--r--src/dbopl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbopl.cpp b/src/dbopl.cpp
index 40b2220..1f2f397 100644
--- a/src/dbopl.cpp
+++ b/src/dbopl.cpp
@@ -1345,7 +1345,7 @@ namespace DBOPL
void Chip::WriteReg(Bit32u reg, Bit8u val)
{
- Bitu index;
+ Bitu index = 0;
switch((reg & 0xf0) >> 4)
{