Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于编译器warring #9

Open
ShareCat opened this issue Oct 22, 2019 · 1 comment
Open

关于编译器warring #9

ShareCat opened this issue Oct 22, 2019 · 1 comment

Comments

@ShareCat
Copy link

这个写法编译器会提示warring:
if (!(copy = (char*)cJSON_malloc(len))) return 0;

建议写成:
copy = (char*)cJSON_malloc(len);
if (!copy) return0;

@armink
Copy link
Owner

armink commented Oct 22, 2019

欢迎提交 pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants