changeset 299:0235eaed75fe trunk

[svn] Properly initialize vars before use. A debug-only message threw a warning, it had to go.
author chainsaw
date Fri, 16 Dec 2005 18:02:41 -0800
parents 4f42c8bcf186
children e35b0290f77c
files Plugins/Input/timidity/libtimidity/instrum_dls.c Plugins/Input/timidity/libtimidity/readmidi.c
diffstat 2 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/timidity/libtimidity/instrum_dls.c	Fri Dec 16 17:48:19 2005 -0800
+++ b/Plugins/Input/timidity/libtimidity/instrum_dls.c	Fri Dec 16 18:02:41 2005 -0800
@@ -1156,7 +1156,7 @@
 {
   MidInstrument *inst;
   uint32 i;
-  DLS_Instrument *dls_ins;
+  DLS_Instrument *dls_ins = NULL;
 
   if (!song->patches)
    return(NULL);
--- a/Plugins/Input/timidity/libtimidity/readmidi.c	Fri Dec 16 17:48:19 2005 -0800
+++ b/Plugins/Input/timidity/libtimidity/readmidi.c	Fri Dec 16 18:02:41 2005 -0800
@@ -69,9 +69,6 @@
 {
   char *s=safe_malloc(len+1);
   MidSongMetaId id;
-  static char *label[] = {
-    "Text event: ", "Text: ", "Copyright: ", "Track name: ",
-    "Instrument: ", "Lyric: ", "Marker: ", "Cue point: "};
 
   if (len != (sint32) mid_istream_read(stream, s, 1, len))
     {
@@ -84,7 +81,6 @@
       if (((unsigned char)s[len])<32)
 	s[len]='.';
     }
-  DEBUG_MSG("%s%s\n", label[(type > 7) ? 0 : type], s);
 
   switch (type)
   {