Skip to content

Dead code  #496

@ZHJ1237

Description

@ZHJ1237

cJSON/cJSON.c

Line 1980 in cf97c6f

while (child->next)

I think child->prev always != NULL so that we can not reach code from line 1979 to 1986。
Please check whether it is a dead code or not.

else
        {
            while (child->next)
            {
                child = child->next;
            }
            suffix_object(child, item);
            array->child->prev = item;
        }

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