[xml] Pointer comparison problem in entities.c (2.3.14)

In entities.c:

static void xmlFreeEntity(xmlEntityPtr entity) {
    if (entity == NULL) return;

    if ((entity->children) && (entity->children->parent == entity))

You cannot do this. entity and entity->children->parent are of
different types. You need to case one to do a pointer comparison.
Looks like you fixed this in 2.4.2 though.

albert chin (china thewrittenword com)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]