From 0dbd01d1909165c34ed879b1ed2f55a005687fef Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 10 Sep 2022 10:25:27 -0400 Subject: [PATCH] cwUi.cpp : Fix uninitialized variable. --- cwUi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwUi.cpp b/cwUi.cpp index c056b19..cc51de4 100644 --- a/cwUi.cpp +++ b/cwUi.cpp @@ -1051,7 +1051,7 @@ namespace cw rc_t _copy_msg_to_recv_buffer( ui_t* p, const void* msg, unsigned msgByteN ) { - rc_t rc; + rc_t rc = kOkRC; if( p->recvBufIdx + msgByteN > p->recvBufN ) rc = cwLogError(kBufTooSmallRC,"The UI input buffer (%i) is too small.", p->recvBufN);