Browse Source

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
master
Xuefer 8 years ago
parent
commit
b51efc2859
  1. 6
      processor/hashtable.m4

6
processor/hashtable.m4

@ -168,8 +168,10 @@ define(`DEF_HASH_TABLE_FUNC', `DEF_STRUCT_P_FUNC(`HashTable', `$1', `
}
}
')
RELOCATE(Bucket, pListHead)
RELOCATE(Bucket, pListTail)
if (SRC(`nNumOfElements')) {
RELOCATE(Bucket, pListHead)
RELOCATE(Bucket, pListTail)
}
RELOCATE(Bucket *, arBuckets)
#ifdef ZEND_ENGINE_2_4
}

Loading…
Cancel
Save