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

index 84cfc0ac9157f6075772c38a7669189a7a4d25ec..93f5d8da72e7405938ade80c3e7d316e059a404a 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;
                }