Don't load garbage into song name due to uninitialized pointer.
This commit is contained in:
parent
8ac4b60928
commit
6566626c7f
|
@ -301,10 +301,11 @@ sequence::load ( const char *name )
|
||||||
DMESSAGE( "reading song info" );
|
DMESSAGE( "reading song info" );
|
||||||
|
|
||||||
/* read song info */
|
/* read song info */
|
||||||
|
int mode = PATTERN;
|
||||||
|
int phrases = 0;
|
||||||
int mode, phrases, patterns;
|
int patterns = 0;
|
||||||
char *sname, *notes;
|
char *sname = NULL;
|
||||||
|
char *notes = NULL;
|
||||||
|
|
||||||
if ( ! f.read_song_info( &mode, &phrases, &patterns, &sname, ¬es ) )
|
if ( ! f.read_song_info( &mode, &phrases, &patterns, &sname, ¬es ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue