fix issue
This commit is contained in:
parent
d2d60990ab
commit
acfced4b47
|
@ -154,7 +154,9 @@ int32_t save_fs(const TFileSetArray *arr, const char *fname) {
|
||||||
int32_t lino = 0;
|
int32_t lino = 0;
|
||||||
|
|
||||||
cJSON *json = cJSON_CreateObject();
|
cJSON *json = cJSON_CreateObject();
|
||||||
|
if (json == NULL) {
|
||||||
TSDB_CHECK_CODE(code = TSDB_CODE_OUT_OF_MEMORY, lino, _exit);
|
TSDB_CHECK_CODE(code = TSDB_CODE_OUT_OF_MEMORY, lino, _exit);
|
||||||
|
}
|
||||||
|
|
||||||
// fmtv
|
// fmtv
|
||||||
if (cJSON_AddNumberToObject(json, "fmtv", 1) == NULL) {
|
if (cJSON_AddNumberToObject(json, "fmtv", 1) == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue