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

This commit is contained in:
Jonathan Moore Liles 2012-02-28 23:19:38 -08:00
parent 8ac4b60928
commit 6566626c7f
1 changed files with 5 additions and 4 deletions

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 ) )
{