From 4346d1b0e66e99809ba7ad9592198f79f673e744 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 25 Aug 2019 16:09:20 +0200 Subject: [PATCH] Remove unnecessary NULL check needle_dup cannot be NULL here. --- ext/standard/string.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index 362ff75df1..4ec66e35bf 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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); } /* }}} */ -- 2.50.1