]> granicus.if.org Git - php/commitdiff
Remove extraneous NULL check of Z_ARRVAL_P()
authorNikita Popov <nikic@php.net>
Sat, 19 Oct 2013 21:52:23 +0000 (23:52 +0200)
committerNikita Popov <nikic@php.net>
Sat, 19 Oct 2013 21:52:23 +0000 (23:52 +0200)
Z_ARRVAL_P() is never NULL

ext/standard/var.c

index 5d104a90cfee8dff9f9ae26748325f45b028b22b..08d43997f78b25d426394e2b5dfe1b216e6bb907 100644 (file)
@@ -453,7 +453,7 @@ PHPAPI void php_var_export_ex(zval **struc, int level, smart_str *buf TSRMLS_DC)
                break;
        case IS_ARRAY:
                myht = Z_ARRVAL_PP(struc);
-               if(myht && myht->nApplyCount > 0){
+               if (myht->nApplyCount > 0){
                        smart_str_appendl(buf, "NULL", 4);
                        zend_error(E_WARNING, "var_export does not handle circular references");
                        return;