]> granicus.if.org Git - php/commitdiff
check g_hash for NULL before resetting it
authorAntony Dovgal <tony2001@php.net>
Tue, 25 Jul 2006 10:36:11 +0000 (10:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 25 Jul 2006 10:36:11 +0000 (10:36 +0000)
ext/filter/filter.c

index 5e4f5a88d6a829abe90c2a29a3ac828d480313ca..7dc95c7ddc26a25a4b8928e51b1c7eb4dabb3af5 100644 (file)
@@ -701,7 +701,9 @@ PHP_FUNCTION(input_get_args)
                RETURN_FALSE;
        } else {
                g_hash = HASH_OF(array_ptr);
-               zend_hash_internal_pointer_reset_ex(g_hash, &pos);
+               if (g_hash) {
+                       zend_hash_internal_pointer_reset(g_hash);
+               }
                array_init(return_value);
        }