Re: [xml] missing check in tree.c?

On Fri, Jul 30, 2004 at 10:28:02AM +0200, oliverst online de wrote:

in tree.c line 3850 (libxml2-2.6.11) you find this code:

    /* if parent != NULL we already registered the node above */
    if (parent == NULL && xmlRegisterNodeDefaultValue)

I recognised, that where the xmlRegisterNodeDefaultValue is also used
and the code always looks like this:

if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue))

Is there is this additional check for __xmlRegisterCallbacks missing?

  Right, fixed. This is to avoid the penalty of a thread related call when
no callback has been registered,

  thanks !


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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