cwUi.cpp : Fix uninitialized variable.

This commit is contained in:
kevin 2022-09-10 10:25:27 -04:00
parent 841aa8f744
commit 0dbd01d190

View File

@ -1051,7 +1051,7 @@ namespace cw
rc_t _copy_msg_to_recv_buffer( ui_t* p, const void* msg, unsigned msgByteN ) 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 ) if( p->recvBufIdx + msgByteN > p->recvBufN )
rc = cwLogError(kBufTooSmallRC,"The UI input buffer (%i) is too small.", p->recvBufN); rc = cwLogError(kBufTooSmallRC,"The UI input buffer (%i) is too small.", p->recvBufN);