diff options
author | Simon Howard | 2015-05-10 18:53:38 -0400 |
---|---|---|
committer | Simon Howard | 2015-05-10 18:53:38 -0400 |
commit | 1f87d0ba3cedbf2a1244d1d6687f46ab8e992946 (patch) | |
tree | 1822768bd6a21249a530539ce630fe4d4e09f170 /src/midifile.c | |
parent | 3a140fe3b5bf1775276a0a454c52b6974b68055f (diff) | |
parent | f1050ee4fead9f47471f25dc10650dad3bf68220 (diff) | |
download | chocolate-doom-1f87d0ba3cedbf2a1244d1d6687f46ab8e992946.tar.gz chocolate-doom-1f87d0ba3cedbf2a1244d1d6687f46ab8e992946.tar.bz2 chocolate-doom-1f87d0ba3cedbf2a1244d1d6687f46ab8e992946.zip |
Merge branch 'master' of github.com:chocolate-doom/chocolate-doom
Diffstat (limited to 'src/midifile.c')
-rw-r--r-- | src/midifile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/midifile.c b/src/midifile.c index 92ffd803..1ab4ecdb 100644 --- a/src/midifile.c +++ b/src/midifile.c @@ -130,7 +130,7 @@ static boolean ReadByte(byte *result, FILE *stream) static boolean ReadVariableLength(unsigned int *result, FILE *stream) { int i; - byte b; + byte b = 0; *result = 0; @@ -203,7 +203,7 @@ static boolean ReadChannelEvent(midi_event_t *event, byte event_type, boolean two_param, FILE *stream) { - byte b; + byte b = 0; // Set basics: @@ -269,7 +269,7 @@ static boolean ReadSysExEvent(midi_event_t *event, int event_type, static boolean ReadMetaEvent(midi_event_t *event, FILE *stream) { - byte b; + byte b = 0; event->event_type = MIDI_EVENT_META; @@ -308,7 +308,7 @@ static boolean ReadMetaEvent(midi_event_t *event, FILE *stream) static boolean ReadEvent(midi_event_t *event, unsigned int *last_event_type, FILE *stream) { - byte event_type; + byte event_type = 0; if (!ReadVariableLength(&event->delta_time, stream)) { |