]> granicus.if.org Git - php/commitdiff
MFH: no need to check it for not-NULL
authorAntony Dovgal <tony2001@php.net>
Mon, 29 May 2006 21:31:49 +0000 (21:31 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 29 May 2006 21:31:49 +0000 (21:31 +0000)
ext/pcre/php_pcre.c

index 76b9822621b71a8ada3cc91d590974fe010960cf..f237ab700bd45fdb92d31fdf448d41a16dca3dca 100644 (file)
@@ -1115,10 +1115,8 @@ PHPAPI char *php_pcre_replace(char *regex,   int regex_len,
                        }
                } else {
                        pcre_handle_exec_error(count TSRMLS_CC);
-                       if (result) {
-                               efree(result);
-                               result = NULL;
-                       }
+                       efree(result);
+                       result = NULL;
                        break;
                }