!3210 持久化参数写入返回值错误

Merge pull request !3210 from cat/persist_safe0925
This commit is contained in:
openharmony_ci 2024-10-05 15:48:32 +00:00 committed by Gitee
commit 48fd01e9ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -243,7 +243,7 @@ static int BatchSavePersistParam(PERSIST_SAVE_HANDLE handle[], const char *name,
PARAM_CHECK(ret > 0, return -1, "Batchsavepersistparam fail, error %d", errno);
}
}
return ret;
return (ret > 0) ? 0 : -1;
}
static void BatchSavePersistParamEnd(PERSIST_SAVE_HANDLE handle[])