From: Ilia Alshanetsky Date: Mon, 4 Nov 2002 17:26:44 +0000 (+0000) Subject: If ordered is not set a random compiler assigned value of *p2 would be used, X-Git-Tag: php-4.3.0RC1~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0506fa5e6ae6cde00479f2de3c94fdc4f3f4799f;p=php If ordered is not set a random compiler assigned value of *p2 would be used, this patch fixes the problem by initializing *p2 to NULL. --- diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 61b3b036f6..aa34fb09cf 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -1163,7 +1163,7 @@ ZEND_API int zend_hash_sort(HashTable *ht, sort_func_t sort_func, ZEND_API int zend_hash_compare(HashTable *ht1, HashTable *ht2, compare_func_t compar, zend_bool ordered TSRMLS_DC) { - Bucket *p1, *p2; + Bucket *p1, *p2=NULL; int result; void *pData2;