Browse Source

Don't load garbage into song name due to uninitialized pointer.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 13 years ago
parent
commit
6566626c7f
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      src/sequence.C

+ 5
- 4
src/sequence.C View File

@@ -301,10 +301,11 @@ sequence::load ( const char *name )
DMESSAGE( "reading song info" );

/* read song info */


int mode, phrases, patterns;
char *sname, *notes;
int mode = PATTERN;
int phrases = 0;
int patterns = 0;
char *sname = NULL;
char *notes = NULL;

if ( ! f.read_song_info( &mode, &phrases, &patterns, &sname, &notes ) )
{


Loading…
Cancel
Save