]> granicus.if.org Git - php/commitdiff
- Fix logic. It was the wrong way around.
authorAndi Gutmans <andi@php.net>
Thu, 31 Jul 2003 05:08:59 +0000 (05:08 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 31 Jul 2003 05:08:59 +0000 (05:08 +0000)
Zend/zend_hash.c

index 95d946d053be31e410677836743f0ce44a20e990..3c30a9dd52ba663d1c718fa9430e1ccc8797974f 100644 (file)
@@ -108,7 +108,7 @@ ZEND_API ulong zend_hash_func(char *arKey, uint nKeyLength)
                memcpy(&(p)->pDataPtr, pData, sizeof(void *));                                                                  \
                (p)->pData = &(p)->pDataPtr;                                                                                                    \
        } else {                                                                                                                                                        \
-               if (!(p)->pDataPtr) {                                                                                                                   \
+               if ((p)->pDataPtr) {                                                                                                                    \
                        (p)->pData = (void *) pemalloc(nDataSize, (ht)->persistent);                            \
                        (p)->pDataPtr=NULL;                                                                                                                     \
                } else {                                                                                                                                                \