VirtualBox

Ignore:
Timestamp:
Apr 5, 2024 3:21:52 PM (10 months ago)
Author:
vboxsync
Message:

libxml2-2.12.6: r162629 fix. bugref:10640

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libxml2-2.12.6/xmlschemas.c

    r104197 r104198  
    54615461                     xmlNodePtr node, int min, int max)
    54625462{
    5463 
    54645463    xmlSchemaParticlePtr ret = NULL;
    54655464    if (ctxt == NULL)
     
    54735472#endif /* !VBOX */
    54745473#endif
     5474
     5475        xmlMalloc(sizeof(xmlSchemaParticle));
     5476    if (ret == NULL) {
     5477        xmlSchemaPErrMemory(ctxt, "allocating particle component",
     5478            NULL);
     5479        return (NULL);
     5480    }
     5481    ret->type = XML_SCHEMA_TYPE_PARTICLE;
     5482    ret->annot = NULL;
     5483    ret->node = node;
     5484    ret->minOccurs = min;
     5485    ret->maxOccurs = max;
     5486    ret->next = NULL;
     5487    ret->children = NULL;
     5488
     5489    WXS_ADD_LOCAL(ctxt, ret);
     5490    /*
     5491    * Note that addition to pending components will be done locally
     5492    * to the specific parsing function, since the most particles
     5493    * need not to be fixed up (i.e. the reference to be resolved).
     5494    * REMOVED: WXS_ADD_PENDING(ctxt, ret);
     5495    */
     5496    return (ret);
    54755497}
    54765498
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette