IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 29, 2008, 5:59:01 PM (18 years ago)
Author:
Paul Price
Message:

Add child's data, if available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtree.c

    r15270 r18773  
    8888                                              ?  node->parent->name
    8989                                              : NULL);
    90     psListIterator *iter = psListIteratorAlloc(node->children, 0, false);                                         
     90    psListIterator *iter = psListIteratorAlloc(node->children, 0, false);
    9191    pxNode *child = NULL;
    9292    while ((child = psListGetAndIncrement(iter))) {
     
    120120    }
    121121
    122     psListIterator *iter = psListIteratorAlloc(node->children, 0, false);                                         
     122    psListIterator *iter = psListIteratorAlloc(node->children, 0, false);
    123123    pxNode *child = NULL;
    124124    while ((child = psListGetAndIncrement(iter))) {
     
    215215        // get from a hashlookup
    216216        psFree(node);
     217    } else if (!node->data) {
     218        pxNodeAddData(node, data);
    217219    }
    218220
Note: See TracChangeset for help on using the changeset viewer.