Changeset b51efc2 in git


Ignore:
Timestamp:
2014-05-30T14:18:59Z (6 years ago)
Author:
Xuefer <xuefer@…>
Branches:
master, trunk
Children:
f5e6898
Parents:
caf19fe
Message:

fix segv for empty hash table on <=PHP_5_3

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1494 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • processor/hashtable.m4

    r7c5c7c2 rb51efc2  
    169169        }
    170170        ')
    171         RELOCATE(Bucket, pListHead)
    172         RELOCATE(Bucket, pListTail)
     171        if (SRC(`nNumOfElements')) {
     172            RELOCATE(Bucket, pListHead)
     173            RELOCATE(Bucket, pListTail)
     174        }
    173175        RELOCATE(Bucket *, arBuckets)
    174176#ifdef ZEND_ENGINE_2_4
Note: See TracChangeset for help on using the changeset viewer.