From 71bfa84e152f1d6155f2dc04b4856af4eb743752 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 18 Feb 2024 08:51:26 -0500 Subject: [PATCH] cwMidiFileDev.cpp : Fixed uninitialized 'rc' in _set_end_msg_index(). --- cwMidiFileDev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwMidiFileDev.cpp b/cwMidiFileDev.cpp index 03148e1..9e448af 100644 --- a/cwMidiFileDev.cpp +++ b/cwMidiFileDev.cpp @@ -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 )