Open ShareCat opened 4 years ago
这个写法编译器会提示warring: if (!(copy = (char*)cJSON_malloc(len))) return 0;
建议写成: copy = (char*)cJSON_malloc(len); if (!copy) return0;
欢迎提交 pr
这个写法编译器会提示warring: if (!(copy = (char*)cJSON_malloc(len))) return 0;
建议写成: copy = (char*)cJSON_malloc(len); if (!copy) return0;