cmPickup.c: fixed uninitialized 'rsi' in _cmTlFindRecdBefore().
This commit is contained in:
parent
f24f84b48d
commit
85e1b90c14
@ -537,6 +537,8 @@ cmPuRC_t _cmPuJsonGainRead( cmPu_t* p, cmJsonH_t jsH, cmJsonNode_t* onp, const c
|
|||||||
{
|
{
|
||||||
cmPuRC_t rc = kOkPuRC;
|
cmPuRC_t rc = kOkPuRC;
|
||||||
cmJsonNode_t* arp;
|
cmJsonNode_t* arp;
|
||||||
|
unsigned arrCnt = 0;
|
||||||
|
cmPuCh_t* arr = NULL;
|
||||||
|
|
||||||
// locate the JSON 'gain' array
|
// locate the JSON 'gain' array
|
||||||
if(( arp = cmJsonFindValue(jsH,label,onp,kArrayTId)) == NULL )
|
if(( arp = cmJsonFindValue(jsH,label,onp,kArrayTId)) == NULL )
|
||||||
@ -546,8 +548,7 @@ cmPuRC_t _cmPuJsonGainRead( cmPu_t* p, cmJsonH_t jsH, cmJsonNode_t* onp, const c
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the count of elements in the 'gain' array
|
// get the count of elements in the 'gain' array
|
||||||
unsigned arrCnt = cmJsonChildCount(arp);
|
arrCnt = cmJsonChildCount(arp);
|
||||||
cmPuCh_t* arr = NULL;
|
|
||||||
|
|
||||||
if( arrCnt > 0 )
|
if( arrCnt > 0 )
|
||||||
{
|
{
|
||||||
@ -572,7 +573,10 @@ cmPuRC_t _cmPuJsonGainRead( cmPu_t* p, cmJsonH_t jsH, cmJsonNode_t* onp, const c
|
|||||||
errLabel:
|
errLabel:
|
||||||
|
|
||||||
if( rc != kOkPuRC )
|
if( rc != kOkPuRC )
|
||||||
|
{
|
||||||
cmMemPtrFree(&arr);
|
cmMemPtrFree(&arr);
|
||||||
|
arrCnt = 0;
|
||||||
|
}
|
||||||
|
|
||||||
cmMemPtrFree(&p->chArray);
|
cmMemPtrFree(&p->chArray);
|
||||||
p->chArray = arr;
|
p->chArray = arr;
|
||||||
|
Loading…
Reference in New Issue
Block a user