修复cm_ctl list问题
This commit is contained in:
parent
d7210e29ec
commit
3b53eae1c7
@ -497,13 +497,15 @@ static status_t ComputeListTableItemLen(
|
||||
}
|
||||
cJSON *item;
|
||||
uint32 tmpAttrValue = valueArr->attrValue;
|
||||
uint32 tempIndex;
|
||||
cJSON_ArrayForEach(item, objArray) {
|
||||
if (!cJSON_IsObject(item)) {
|
||||
continue;
|
||||
}
|
||||
tempIndex = index;
|
||||
attrValue = CM_MAX(valueArr->attrValue, attrValue);
|
||||
valueArr->attrValue = tmpAttrValue;
|
||||
ComputeArrItemLen(item, valueArr, &index, printInfo, resCtx);
|
||||
ComputeArrItemLen(item, valueArr, &tempIndex, printInfo, resCtx);
|
||||
}
|
||||
valueArr->attrValue = CM_MAX(valueArr->attrValue, attrValue);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user