提交 6a24d82b 编写于 作者: S Shengliang Guan

minor changes

上级 80a7549c
...@@ -152,9 +152,9 @@ static int32_t sdbReadDataFile() { ...@@ -152,9 +152,9 @@ static int32_t sdbReadDataFile() {
code = 0; code = 0;
PARSE_SDB_DATA_ERROR: PARSE_SDB_DATA_ERROR:
tfree(line); if (line) free(line);
fclose(fp); if (fp) fclose(fp);
cJSON_Delete(root); if (root) cJSON_Delete(root);
return code; return code;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册