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

/* memory fail */ #567

Open
perseverance51 opened this issue Apr 5, 2021 · 1 comment
Open

/* memory fail */ #567

perseverance51 opened this issue Apr 5, 2021 · 1 comment

Comments

@perseverance51
Copy link

compiling cJSON.c...
..\NET\cJSON\cJSON.c(55): warning: #1293-D: assignment in condition
if (!(copy = (char*)cJSON_malloc(len))) return 0;
..\NET\cJSON\cJSON.c(280): warning: #1293-D: assignment in condition
ptr=str;while ((token=ptr) && ++len) {if (strchr(""\\b\f\n\r\t",token)) len++; else if (token<32) len+=5;ptr++;}
..\NET\cJSON\cJSON.c(354): warning: #111-D: statement is unreachable
return p.buffer;
..\NET\cJSON\cJSON.c(425): warning: #1293-D: assignment in condition
if (!(new_item=cJSON_New_Item())) return 0; /
memory fail /
..\NET\cJSON\cJSON.c(537): warning: #1293-D: assignment in condition
if (!(new_item=cJSON_New_Item())) return 0; /
memory fail */
..\NET\cJSON\cJSON.c: 5 warnings, 0 errors

@Alanscut
Copy link
Collaborator

The code snippet in error log seems doesn't exist in the latest source code, could you provide more information?

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

No branches or pull requests

2 participants