]> granicus.if.org Git - php/commitdiff
Remove unnecessary NULL check
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Aug 2019 14:09:20 +0000 (16:09 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Aug 2019 14:30:16 +0000 (16:30 +0200)
needle_dup cannot be NULL here.

ext/standard/string.c

index 362ff75df147b915a1875c71f14a3d28fc666334..4ec66e35bfdc4d76122e9a24baad670e96d47008 100644 (file)
@@ -1960,9 +1960,7 @@ PHP_FUNCTION(stripos)
        }
 
        zend_string_release_ex(haystack_dup, 0);
-       if (needle_dup) {
-               zend_string_release_ex(needle_dup, 0);
-       }
+       zend_string_release_ex(needle_dup, 0);
 }
 /* }}} */