cmScore.c : Fixed bug in _cmScParseFile() where _cmScParseSectionColumn()

overwrote 'rc' and thereby prevented the functio from returning the correct result code on fail.
This commit is contained in:
kevin 2013-11-19 11:06:56 -05:00
parent c809469b62
commit e6933b61d2

View File

@ -1306,6 +1306,8 @@ cmScRC_t _cmScParseFile( cmSc_t* p, cmCtx_t* ctx, const cmChar_t* fn )
break; break;
} }
if( rc == kOkScRC )
{
if( secs != DBL_MAX ) if( secs != DBL_MAX )
cur_secs = secs; cur_secs = secs;
@ -1328,6 +1330,7 @@ cmScRC_t _cmScParseFile( cmSc_t* p, cmCtx_t* ctx, const cmChar_t* fn )
barEvtIdx = cmInvalidIdx; barEvtIdx = cmInvalidIdx;
} }
}
} }