fix: Assign an initial value to variables
issue
@@ -54,7 +54,7 @@ Function: RpcInit()
*******************************************************************************/
void * RpcInit(void)
{
- void * rpc_context_ptr;
+ void * rpc_context_ptr = NULL;
#if RPC_USE_LIBCURL == 1
rpc_context_ptr = CurlPortInit();
@@ -176,7 +176,7 @@ BOAT_RESULT RpcRequestSync(void *rpc_context_ptr,
BOAT_OUT BUINT8 **response_pptr,
BOAT_OUT BUINT32 *response_len_ptr)
{
- BOAT_RESULT result;
+ BOAT_RESULT result = BOAT_ERROR;
#if RPC_USE_LIBCURL == 1
result = CurlPortRequestSync(rpc_context_ptr, (const BCHAR *)request_ptr, request_len, (BOAT_OUT BCHAR **)response_pptr, response_len_ptr);
