fix: minor changes

This commit is contained in:
Shengliang Guan 2023-01-11 13:58:22 +08:00
parent 7c236fba6d
commit 118c01e6a2
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ static int32_t mmDecodeOption(SJson *pJson, SMnodeOpt *pOption) {
if (code < 0) return 0; if (code < 0) return 0;
SJson *replicas = tjsonGetObjectItem(pJson, "replicas"); SJson *replicas = tjsonGetObjectItem(pJson, "replicas");
if (replicas == NULL) return 0; if (replicas == NULL) return -1;
pOption->numOfReplicas = tjsonGetArraySize(replicas); pOption->numOfReplicas = tjsonGetArraySize(replicas);
for (int32_t i = 0; i < pOption->numOfReplicas; ++i) { for (int32_t i = 0; i < pOption->numOfReplicas; ++i) {