Changeset 1171 for trunk


Ignore:
Timestamp:
2012-11-13T09:51:47+01:00 (23 months ago)
Author:
moo
Message:

fix pInternalPointer for xc_hash_copy_if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache/xc_utils.c

    r1170 r1171  
    574574    while (p) { 
    575575        if (checker(p->pData)) { 
    576             if (setTargetPointer && source->pInternalPointer == p) { 
    577                 target->pInternalPointer = NULL; 
    578             } 
    579576            if (p->nKeyLength) { 
    580577                zend_u_hash_quick_update(target, p->key.type, ZSTR(BUCKET_KEY_S(p)), p->nKeyLength, p->h, p->pData, size, &new_entry); 
     
    585582                pCopyConstructor(new_entry); 
    586583            } 
     584            if (setTargetPointer && source->pInternalPointer == p) { 
     585                target->pInternalPointer = new_entry; 
     586            } 
    587587        } 
    588588        p = p->pListNext; 
Note: See TracChangeset for help on using the changeset viewer.