cwMidiFileDev.cpp : Fixed uninitialized 'rc' in _set_end_msg_index().

This commit is contained in:
kevin 2024-02-18 08:51:26 -05:00
parent 13f18fe5f0
commit 71bfa84e15

View File

@ -272,7 +272,7 @@ namespace cw
// Set msg_idx to kInvalidIdx to make the last p->fileA[file_idx].msgN the end index.
rc_t _set_end_msg_index( file_dev_t* p, unsigned file_idx, unsigned msg_idx )
{
rc_t rc;
rc_t rc = kOkRC;
unsigned i = 0;
if( file_idx == kInvalidIdx )