mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix segfault when using zend_hash_add_empty_element
This commit is contained in:
parent
060983b184
commit
ba8af2515e
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ ZEND_API int zend_hash_quick_add_or_update(HashTable *ht, char *arKey, uint nKey
|
|||
|
||||
ZEND_API int zend_hash_add_empty_element(HashTable *ht, char *arKey, uint nKeyLength)
|
||||
{
|
||||
void *dummy=NULL;
|
||||
void *dummy = (void *) 1;
|
||||
|
||||
return zend_hash_add(ht, arKey, nKeyLength, &dummy, sizeof(void *), NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue