Skip to content

关于编译器warring #9

@ShareCat

Description

@ShareCat

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions